Form Handling 
Author Message
 Form Handling

I understand that in VB .NET within your sub main() to start a form you must
do the following.

Application.Run(new frmMain())

or have your startup form as the start up object within the properties.

My question is

When you are finished with this form can you destroy and open a new form???
I am trying to open a new form a close this form and the whole application
closes. Do I have to hide this form and open and close forms??

Thanks,

Tristan.



Sun, 19 Jun 2005 01:26:36 GMT  
 Form Handling
Application.Run creates a message pump to passed form, if you close it to
display a new one , windows messages will be sent to a window that no longer
exists that's why your app shuts down, to fix, just hide main form instaed
of closing it.

HTH

--
Corrado Cavalli [Microsoft MVP]
UGIdotNET - http://www.ugidotnet.org



Sat, 18 Jun 2005 16:23:34 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. How to call a form routine from a module by the form handle

2. Passing a form handle

3. Web Form Handling

4. Form handles

5. 16bit / 32bit form handles

6. VBA Form handling,,,,,Help

7. CGI form handling

8. Form Handling

9. form handling; URL generation

10. Passing a form handle

11. Form handling with a random number of elements?

12. Question on form handling - select multiple.

 

 
Powered by phpBB® Forum Software