471,067 Members | 1,561 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,067 software developers and data experts.

Newbie - Quitting in VB6

I have almost finished my project but i have made a command button. What i want it to do is when clicked, exit the application/project and the whole of VB closes. Is this possible? If so how?

Cheers in advance.
Mar 30 '06 #1
2 1515
Just type
End
on its own
Mar 30 '06 #2
CaptainD
135 100+
It's a good idea to make sure all the forms in your program are closed prior to exiting the program.
Expand|Select|Wrap|Line Numbers
  1.     Dim frm As Form
  2.     'Unload the form
  3.     For Each frm In Forms
  4.         Unload frm
  5.     Next
  6.  
Mar 30 '06 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Deaconess | last post: by
8 posts views Thread by bearophileHUGS | last post: by
reply views Thread by Twayne | last post: by
16 posts views Thread by Raxit | last post: by
10 posts views Thread by Peter Michaux | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.