Completly close program
-
Is there a command that will close a program and all its forms. Right now i have a program that wont close when all the forms are gone. I am using this code to switch from form to form: Dim f As New Form2 f.StartPosition = FormStartPosition.Manual f.Location = Me.Location f.Show() Me.Hide() Thanks.
-
Is there a command that will close a program and all its forms. Right now i have a program that wont close when all the forms are gone. I am using this code to switch from form to form: Dim f As New Form2 f.StartPosition = FormStartPosition.Manual f.Location = Me.Location f.Show() Me.Hide() Thanks.
the command 'Application.Exit()' will completly close the program - Kyle
-
Is there a command that will close a program and all its forms. Right now i have a program that wont close when all the forms are gone. I am using this code to switch from form to form: Dim f As New Form2 f.StartPosition = FormStartPosition.Manual f.Location = Me.Location f.Show() Me.Hide() Thanks.
Ummm...
Me.Hide()
doesn't close the form, it just makes it invisible. You're app is apparently still running because you never closed all your forms, active, invisible, or otherwise. In order to shutdown your app, you must close your startup form. This form starts the message pump for you application. Since your app is still running, this means that the app's message pump is still running. If the message pump is still running, you never closed your startup form. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome -
Ummm...
Me.Hide()
doesn't close the form, it just makes it invisible. You're app is apparently still running because you never closed all your forms, active, invisible, or otherwise. In order to shutdown your app, you must close your startup form. This form starts the message pump for you application. Since your app is still running, this means that the app's message pump is still running. If the message pump is still running, you never closed your startup form. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnometo completly close your program you can use following commands '(To close all form and exit but not other threads) Application.Exit OR '(To close all forms and threads) Application.ExitThread() !alien!
-
to completly close your program you can use following commands '(To close all form and exit but not other threads) Application.Exit OR '(To close all forms and threads) Application.ExitThread() !alien!
I know that. I'm just explaining WHY his app didn't close. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
Is there a command that will close a program and all its forms. Right now i have a program that wont close when all the forms are gone. I am using this code to switch from form to form: Dim f As New Form2 f.StartPosition = FormStartPosition.Manual f.Location = Me.Location f.Show() Me.Hide() Thanks.