Application won't shut down
Posted on 2006-07-08
Have been working all night on a simple little program that uses 5 forms (more to be added). Each form has buttons to open any of the others while closing itself. Form1 is the startup Form and is hidden instead of closed with these buttons (Form1 is then "visible=true" when re-accessing this form.
The problem is...when closing Form1, the app doesn't shut down. I have to manually stop it. Driving me crazy!
(VB 5 & 6 were sooooo much easier!) - VB (all versions) novice here.
I'm guessing it has to do with different instances of Form1? Assuming that when I hit the button on Form2 to show Form1 and close Form2, it's actually creating/showing a new instance of Form1 (???), and the original Form1 is still running hidden?
How can I reference instances of forms already running - hidden or not - without creating new instances?
Need some pretty low-brow explanations here...
Thanks much for any help.