|
Keep Going!
------------------------------------
Always acknowledge a fault. This will throw those in authority off their guard and give you an opportunity to commit more.
Mark Twain
|
|
|
|
|
Awwwwwww.
[Scut Farkus from A Christmas Story] Cry, baby, cry [/Scut Farkus from A Christmas Story]
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
BWAAAAHHHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAH..........
HARR HARR HAR HAR HAR HAR HO HO HO HHE HEH EHEHEHEHEHEHEHEHEHEHEHEHEH CHOKE CHOKE
AAAAHAHAHAHAHAHAHAHAHAHAHAHA
COUGH
[Eyes begin to tear up]
COUGH CHOKE
haha
John, you certainly made ME cry!
Scott P.
"Simplicity carried to the extreme becomes elegance."
-Jon Franklin
|
|
|
|
|
Reposting the exact same question is not going to change the answers.
It's obvious that you don't know the basics of ASP.NET, so how do you expect understand the answers anyone gives??
Seriously, pickup a book on ASP.NET and work through that first. Then you might not even have to ask this question, especially since your question #2 is just saying that you want someone to write the code for you.
|
|
|
|
|
I liked my answer better.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
bmx4637 wrote: I would like to know WHERE DO I PUT THIS CODE??
No, trust me, you really don't want to know the answer to that.
Here's the thing. There is a lot to software development. Enough at least that copying and pasting code isn't going to cut it in the long run. So you have a choice, buck up and dig into learning from the beginning, or continue down this path of instant gratification that will result in you always needing others to tell you what to do which could be described as "Loser".
led mike
|
|
|
|
|
haha I like that answer, thanks man
|
|
|
|
|
led mike wrote: could be described as "Loser".
That would be my description.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
bmx4637 wrote: Being a beginner and getting my feet wet with this, I wonder if anyone can give me some tips
Tips? Yes, try less ambitious projects until you have mastered C# a bit better.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
You asked this yesterday, I gave a complete answer and hung around for ages expecting that you;d want to explore it more. As others have said, and as I said before, it's obvious you know nothing about web development, so buy a book and work through it.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hey All,
I have an app with several forms. Lets call them FormA, FormB, FormC. FormA is the starting form with many text boxes to fill in. I have a button on it that then opens up the other two (FormB,C) and populates them with data from FormA. Most of the time I will be working with FormB for here on out. What I need to know is how to show the already opened formC (not create a new instance) from formB.
using this just creates a new instance.
FormC frmC = new FormC();
frmC.show();
So i need to know how to reference FormC without creating a new instance.
Thanks,
Dylan
|
|
|
|
|
If formC doesn't exist yet, it cannot be referenced?
I don't understand your question..
|
|
|
|
|
I think this is a zen thing...
¡El diablo está en mis pantalones! ¡Mire, mire!
Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!
SELECT * FROM User WHERE Clue > 0
0 rows returned
Save an Orange - Use the VCF!
VCF Blog
|
|
|
|
|
Why don't you remove the data model from the UI? What I mean by that is create an object structure that is loosely coupled to the UI. Have a look at the Model-View-Controller pattern, I think it solves issues like this also. Possibly this isn't the answer that you're looking for, but it's probably the correct way to handle problems like this.
Scott P.
"Simplicity carried to the extreme becomes elegance."
-Jon Franklin
|
|
|
|
|
Sorry to go off topic here, but I googled the MVC pattern trying to find something extensive yet a little simple to get a basic grasp on it. If you have any recommendations, that would be amazing. Would be a nice article for CP as well (hint hint)
|
|
|
|
|
Here's a simple example, and although it's in Java it's understandable enough to grasp the concept.
MVC Temperature Example
Scott P.
"Simplicity carried to the extreme becomes elegance."
-Jon Franklin
|
|
|
|
|
http://www.dnrtv.com
I really liked JP Boodhoo's 5 part video on design patterns. He covers the MVC pattern really well.
|
|
|
|
|
Thanks guys, Im cracking on those videos right now
|
|
|
|
|
|
Well, I'd probably do it like this:
Use a tab control (by default, the main form has access to all of the controls/data on all of the included tab pages, so you can keep your data tightly coupled to the UI if that's what you really want).
or
Create each form on a UserControl object, and show/hide them based on what you need.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
John Simmons / outlaw programmer wrote: so you can keep your data tightly coupled to the UI if that's what you really want
LMAO Brilliant. Even better, just put all your code inside the main() function!
led mike
|
|
|
|
|
I agree with him however remove the complexity by using the MVC pattern.
ed
~"Watch your thoughts; they become your words. Watch your words they become your actions.
Watch your actions; they become your habits. Watch your habits; they become your character.
Watch your character; it becomes your destiny."
-Frank Outlaw.
|
|
|
|
|
When you open form B and C I guess you pass data to them - if the form C data is constant then you could pass that to B at the same time...
Otherwise one way you could make this work is simply call public methods between the forms (A would be the parent of B and C)
lets say TextBox1 is on form C and you want the Text value in form B...
in form A:
FormB formB = null;
FormC formC = null;
formB = new FormB(); formB.Show(this);
formC = new FormC(); formC.Show(this);
Public string GetformCTextBox1Value()
{
return formC.GetTextBox1Value;
}
form B:
FormA parent = (FormA)this.Owner;
string formCTextBox1Value = parent.GetformCTextBox1Value();
form C:
public string GetTextBox1Value
{
get { return TextBox1.Text; }
set { TextBox1.Text = value; }
}
Chas
modified on Thursday, December 11, 2008 11:42 AM
|
|
|
|
|
hi everybody
how to handle leave(back to front & vice versa) event for a textbox in windows form using c#
|
|
|
|
|
Simple.
private void textBox1_Leave(object sender, EventArgs e)
Bob
Ashfield Consultants Ltd
|
|
|
|