Re: Exit from application
From: Ken Halter (Ken_Halter_at_Use_Sparingly_Hotmail.com)
Date: 01/04/05
- Next message: Vince: "VB and connection to SQL Server"
- Previous message: Wart: "Re: Exit from application"
- Maybe in reply to: Rick Rothstein: "Re: Exit from application"
- Next in thread: Ralph: "Re: Exit from application"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 4 Jan 2005 07:22:19 -0800
".:alex:." <alex_77ro@yahoo.com> wrote in message
news:u0uC71m8EHA.3820@TK2MSFTNGP11.phx.gbl...
>
> yes, you right, but how to stop my application
> I Set [all] = Nothing i Unloaded the form and
> after all I called End...
>
> What it's really wrong? What is the solution?
> Thank you again,
>
> Alex
When all forms are unloaded and the last "End Sub" runs, the program will
end on its own.
Single form app with a command button.
'============
Option Explicit
Private Sub Command1_Click()
Unload Me 'place a breakpoint here and single step
End Sub 'App will end with this line runs.
'============
Started from Sub Main.... use F8 to run the program one line at a time.
'============
Option Explicit
Public Sub Main()
Debug.Print "App will end after the next line runs"
End Sub 'ends here
'============
-- Ken Halter - MS-MVP-VB - http://www.vbsight.com Please keep all discussions in the groups..
- Next message: Vince: "VB and connection to SQL Server"
- Previous message: Wart: "Re: Exit from application"
- Maybe in reply to: Rick Rothstein: "Re: Exit from application"
- Next in thread: Ralph: "Re: Exit from application"
- Messages sorted by: [ date ] [ thread ]