simple question (Form1)

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved

Join Date: Jul 2008
Posts: 27
Reputation: deftones is an unknown quantity at this point 
Solved Threads: 0
deftones deftones is offline Offline
Light Poster

simple question (Form1)

 
0
  #1
30 Days Ago
Hey,

How not let the user to close a form with a close button? Basically, I need a form to be hidden most of the time, but sometimes it is shown by the code (intentionally). And when you hit close button, user not only closes the form, but unloads it as well, so how do I avoid that?
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 835
Reputation: vb5prgrmr will become famous soon enough vb5prgrmr will become famous soon enough 
Solved Threads: 152
vb5prgrmr vb5prgrmr is offline Offline
Practically a Posting Shark
 
0
  #2
29 Days Ago
Use the query_unload event, set cancel to true and hide the form with me.hide or me.visible=false



Good Luck
If anyone has helped you solve your problem, please mark your thread as solved.

Thanks
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 27
Reputation: deftones is an unknown quantity at this point 
Solved Threads: 0
deftones deftones is offline Offline
Light Poster
 
0
  #3
29 Days Ago
Very clear and short, thank you
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



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

©2003 - 2009 DaniWeb® LLC