Need Instant Programming Help

soulslicer

Tank
Joined
Mar 16, 2007
Messages
4,623
Reaction score
12
Right, sorry for being such a helpaholic..but I need help.

Say I am in visual studio working with windows forms in C#. I have two forms in my solution. I have a button on one of my forms. When I click that button, I want it to open the other form. What is the code for that event!!??

So simple, yet I have no idea and I cant find anything on the web..
 
I haven't done that yet (I'm still learning C#)

I would do something like

Form2.Visible = true; Form1.Visible = False;

or

Form2.Show; Form1.Application.exit();

That's just what I would try. I still need a reference for syntax half the time...

You should be able to find something: http://www.google.com/search?hl=en&...C#+open+another+form&aq=f&aqi=g1g-v1&aql=&oq=

EDIT: new form2().Show();

(I think that would be blank though, for adding things to programmatically)
 
If you are Using cocoa or that objective c for coding iphone apps, it's as simple as

Itjj...form...//:show&@&visibility@spectriumizer||)++pp==¥£€>^!!!!'

Makes perfect sense doesn't it. ****ing apple **** you.
 
Okay, Now I am having a new problem..

Say I have two forms. A Parent form, and a child form. On the Parent form, I have a textbox and a button. When I click the button it jumps to the child form. On the child form..I have a textbox and a button that says store.

What I want to do is that, I want to enter text into the textbox, click store..and when I close the child form..the stored text must appear in the parent form. It seems that when I close the child form, the data dissapears..
 
Say I have two forms. A Parent form, and a child form. On the Parent form, I have a textbox and a button. When I click the button it jumps to the child form. On the child form..I have a textbox and a button that says store.

What I want to do is that, I want to enter text into the textbox, click store..and when I close the child form..the stored text must appear in the parent form. It seems that when I close the child form, the data dissapears..
public static TextBox tb = new TextBox();

If you skip ahead you might be able to do some cool things early on, but you'll be frustrated all the time.
 
Back
Top