-
December 31st, 2005, 09:23 AM
#1
unloading form
hello,
when i unload a form i use
Code:
private sub cmdExit_click()
unload me
end sub
but a few days/weeks ago, i found a project of wizbang and he uses this
Code:
private sub cmdExit_click()
unload me
end
end sub
what is the difference, when to use end?
-
December 31st, 2005, 11:15 AM
#2
Re: unloading form
Originally Posted by koenbuytaert
but a few days/weeks ago, i found a project of wizbang and he uses this
Code:
private sub cmdExit_click()
unload me
end
end sub
what is the difference, when to use end?
Either wizbang made a typo or there was a problem with the app was not ending properly..
But using End is not realy advisable.. This forces the App to close with out running any of the Form_Unload events, The activeX components will not run the Class_Terminate events. This is efectivley like Pulling the plug on a pc while it is running. Killing all the events without shuting them down..
There been a bit of discution on this lately...
a Quick CG search should find it...
Gremmy.
Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
WPF Articles : 3D Animation 1 , 2 , 3
Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|