|
-
Dec 28th, 2002, 10:24 PM
#1
Thread Starter
Hyperactive Member
Show Form
I have Form1 and Form2 and C#.
How can I show the Form2
-
Dec 28th, 2002, 10:37 PM
#2
Frenzied Member
Form2 myForm;
myForm.ShowDialog(); //spelling might be incorrect..
-
Dec 29th, 2002, 02:50 PM
#3
Form2 myForm = new Form2();
myForm.ShowDialog();
Nobody likes null pointer exceptions.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Jan 21st, 2003, 11:30 AM
#4
Member
I have done the following from Form1
Form2 myForm = new Form2();
myForm.Show();
but if I close the initial form that I called this from then the Form2 also is close.
How can I close the calling form, without newly opened form from also closing?
-
Jan 21st, 2003, 07:50 PM
#5
Lively Member
Instead of closing Form1,
Form1.Visible = false;
-
Jan 22nd, 2003, 09:33 AM
#6
Member
That still means its in memory and running in the background.
What if a user clicks the X button in the top right, it will still close.
Any better ways to do this.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|