Edited by Dark Slipstream, 16 August 2009 - 10:56 PM.
iBotModz CBox
(C#) Show Another Form
Started by Dark Slipstream, May 11 2009 09:31 PM
6 replies to this topic
#1
Posted 11 May 2009 - 09:31 PM
Removed.
#2
Posted 11 May 2009 - 10:03 PM
You could use
Form1 Form1 = new Form1();
Form1.Show();
Replacing Form1 with the name of the form you want to pop up. This is pretty much the same as yours, but you didn't really clarify yours. Also, make sure that you have correct capitalization.
Form1 Form1 = new Form1();
Form1.Show();
Replacing Form1 with the name of the form you want to pop up. This is pretty much the same as yours, but you didn't really clarify yours. Also, make sure that you have correct capitalization.
Edited by EsjayIzBack, 11 May 2009 - 10:05 PM.
#3
Posted 11 May 2009 - 10:05 PM
I replaced newForm with Form1, but you shouldn't assign Form1 to Form1, that can arise to problems.
#4
Posted 12 May 2009 - 05:16 AM
When I do mine I do
I assume that will get errors some time. If my form name is (intro) that I want to appear which do I change and which do I leave?
intro intro = new intro(); intro.Show();
I assume that will get errors some time. If my form name is (intro) that I want to appear which do I change and which do I leave?
#5
Posted 12 May 2009 - 08:30 AM
intro in = new intro(); intro.Show();
Make it look like that. This way it won't error.
If you are using namespaces in your project, don't worry about changing it.
#6
Posted 12 May 2009 - 03:21 PM
I replaced newForm with Form1, but you shouldn't assign Form1 to Form1, that can arise to problems.
I was just using Form1 as an example.
#7
Posted 13 May 2009 - 01:03 PM
I right click to create mines, name it "Example.cs", add what I want it to look like. Then I just add the following:
//First make the current form disappear. this.Visible = false; //Now create a new form Example e = new Example(); e.Show();