Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Correct way to End program using VB
Name: kevster32 Date: September 20, 2004 at 10:31:08 Pacific OS: XP PRO CPU/Ram: AMD/512
Comment:
Hello people,
When using visual basic what is the correct way to end your programs:
I use 'Unload me' to terminate various subforms and release those resources.
I use 'End' to terminate my entire application.
0
Response Number 2
Name: Sci-Guy Date: September 20, 2004 at 18:57:43 Pacific
Reply:
Like I.R. said, Unload Me gor subforms and End to terminate the proggie.
0
Response Number 3
Name: Sci-Guy Date: September 20, 2004 at 18:59:06 Pacific
Reply:
Damn typo's!!! "gor" should be "for".
0
Response Number 4
Name: StuartS Date: September 21, 2004 at 16:15:54 Pacific
Reply:
You should never use End to terminate a VB application. End is a debugging tool and nothing else. It can leave stuff still in memory.
Use Unload.Me. When the last form is unloaded the application will terminate. If it doesn't terminate there is still something loaded, probably a form that has been loaded and hidden. End will not unload it.
End if the software equivalent of pulling the mains plug to turn your computer off.
Summary: The BEST way to learn programming Tetris source code in VC6, C++ Builder5, JBuilder, Delphi6, VB6, VB.net(VS.net beta2) and C Sharp(C#, VS.net beta2) It is the best way to learn programming quickly. E...
Summary: Please assist me with information on how to develop a client server program using vb 6.0. a code sample will be appreciated. thanks Waremasters ...
Summary: I've written a simple program to run in background, but it uses 100% of the CPU kernel. Is there a way to limit its use to 5% or less by modifying the code? I'm using Microsoft VC++ 6 Enterprise. I al...