Donate SIGN UP

VB .net problem

Avatar Image
Potatoman | 22:39 Mon 14th Feb 2005 | Technology
2 Answers
Im writing an app that has more than one dialog box open (modless and modal). When the user closes the app via the red cross in the top right of the window, how do i close all the windows (some are hidden ( form.hide() ) at the same time and completely exit the app? Some of the hidden boxes are preventing the prog from closing, and form.close() doesnt seem to do it, as there are more than 1.
Gravatar

Answers

1 to 2 of 2rss feed

Best Answer

No best answer has yet been selected by Potatoman. Once a best answer has been selected, it will be shown here.

For more on marking an answer as the "Best Answer", please visit our FAQ.

Isn't there a Form_Unload procedure, like in VB6.

There is a Form_Closing event.  Handle this on the main form and call Close() on all the child forms.

1 to 2 of 2rss feed

Do you know the answer?

VB .net problem

Answer Question >>