|
-
December 10th, 2008, 06:43 PM
#1
[RESOLVED] Forms and Close() method
Hi all!!
I am developing a Windows based application using VS 2005.
I have a main form with a main menu on it and I use the menu items to call other forms of the application. When one of the menu items is clicked a form (which I call Form1) is called using the ShowDialog method. Then on this form there is a button that when clicked calls another form using ShowDialog again (called Form2). Form2 has a button that when clicked I call the Close() method to close the form. This way Form2 is closed but at the same time Form1 is closed too and I can not understand why. And I don't want this to happen. After displaying some info on Form2 I want to continue using Form1.
Any idea?? Please help ASAP....
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
|