Michaelk
Well-known member
Hi. I've written a web browser, but i have one problem.
Due to multiple windows needing to be opened (New Windows), the same form may need to be opened multiple times (e.g Form1), simultaneously. The problem i have is that if the original form, Form1, is closed. Then the whole program closes, therefore closing all other windows. I know in VB.NET 2005 you can select that the program only closes once all forms are closed, but how can i do it in 2003? Is there code that i can run on another form which constantly checks how many instances of Form1 are running, and if this value reaches 0, closes the app?
Thanks.
Due to multiple windows needing to be opened (New Windows), the same form may need to be opened multiple times (e.g Form1), simultaneously. The problem i have is that if the original form, Form1, is closed. Then the whole program closes, therefore closing all other windows. I know in VB.NET 2005 you can select that the program only closes once all forms are closed, but how can i do it in 2003? Is there code that i can run on another form which constantly checks how many instances of Form1 are running, and if this value reaches 0, closes the app?
Thanks.