VB Instruction to EXIT a Program

Reply

Join Date: Nov 2004
Posts: 638
Reputation: Thong_Ispector is an unknown quantity at this point 
Solved Threads: 18
Thong_Ispector's Avatar
Thong_Ispector Thong_Ispector is offline Offline
Practically a Master Poster

VB Instruction to EXIT a Program

 
0
  #1
Aug 18th, 2005
Is there an instruction that I can add to a button click to exit a program
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 11
Reputation: switty is an unknown quantity at this point 
Solved Threads: 0
switty's Avatar
switty switty is offline Offline
Newbie Poster

Re: VB Instruction to EXIT a Program

 
0
  #2
Aug 18th, 2005
ei, you need to make a new command button then
code it like this:

formname.unload me
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 121
Reputation: jwshepherd is an unknown quantity at this point 
Solved Threads: 5
jwshepherd's Avatar
jwshepherd jwshepherd is offline Offline
Junior Poster

Re: VB Instruction to EXIT a Program

 
0
  #3
Aug 18th, 2005
try using this instead.
it will unload all forms and then end all processes.
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. dim f as Form
  2. for each f in forms
  3. unload F
  4. next
  5. end
.: We may acquire liberty, but it is never recovered if it is lost :.
irc://irc.rizon.net/#itf
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 638
Reputation: Thong_Ispector is an unknown quantity at this point 
Solved Threads: 18
Thong_Ispector's Avatar
Thong_Ispector Thong_Ispector is offline Offline
Practically a Master Poster

Re: VB Instruction to EXIT a Program

 
0
  #4
Aug 18th, 2005
Thanks guys...

I was having a complete brain fart day...

I also had a typo in a public variable that drove me INSANE trying to figure out why the simple program wouldn't work.

When I finally saw it I fixed it ran it once then powered down and walked away..

Some days I just create more work for myself...

Again,
Thanks...
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC