"Li Pang" <Li****@discussions.microsoft.com> schrieb:
Anybody knows the equivalence of
End in VB6 or
WScript.Quit in vbscript
to exit the program?
This depends on the type of the program. For a simple console application
you can use 'Return' inside your 'Sub Main' to exit the program. In Windows
Forms applications, close all your forms. After closing the application's
main form by calling its 'Close' method, the application will exit. 'End'
still works, but I don't recommend to use it because it will prevent cleanup
code from executing.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>