B
Beebs
I seem to be having problems closing a singleton application I created
from a form's exit menu. If I have this code in my mnuExit event:
Me.Dispose()
frmStartup.Instance().Close()
It only closes (or disposes) the current form and the frmStartup form.
If I use this code in my mnuExit event:
frmForm1.Instance().Dispose()
frmForm2.Instance().Dispose()
frmForm3.Instance().Dispose()
frmForm4.Instance().Dispose()
frmStartup.Instance().Close()
it takes a long time to dispose of the forms, but for some reason (and
even if I use frmStartup.Instance().Dispose) the frmStartup form is
still visible!!! What do I have to do to close down a singleton
application. By the way, in my modMain, I use the following code to
launch the app:
Application.Run(New frmStartup)
from a form's exit menu. If I have this code in my mnuExit event:
Me.Dispose()
frmStartup.Instance().Close()
It only closes (or disposes) the current form and the frmStartup form.
If I use this code in my mnuExit event:
frmForm1.Instance().Dispose()
frmForm2.Instance().Dispose()
frmForm3.Instance().Dispose()
frmForm4.Instance().Dispose()
frmStartup.Instance().Close()
it takes a long time to dispose of the forms, but for some reason (and
even if I use frmStartup.Instance().Dispose) the frmStartup form is
still visible!!! What do I have to do to close down a singleton
application. By the way, in my modMain, I use the following code to
launch the app:
Application.Run(New frmStartup)