Ariez Posted March 30, 2003 Posted March 30, 2003 1) whats the difference between: Me.Hide() and Me.visible=False (same for me.show() and me.visible=true)... 2) both wont work in the form.Load event I need to hide the form at startup (just show the tray icon) (i used some trick on the activate event so that its triggered only at startup) If startup Then startup = False Me.Hide() End If how would you do it? 3) finaly I need the form to Hide (not close) when the close button of the form is clicked. would greatly appreciate help Quote Auto-suggestion: "I have a life" Uncontroled thinking: "So what the.."
*Experts* Volte Posted March 30, 2003 *Experts* Posted March 30, 2003 1) Nothing 2) You might try using a Sub Main with Application.Run() to start a message loop without a form. Then you can possibly show/hide your form whenever you want. 3) You can use the 'Closing' event of a form to capture its closing. If you wish to stop it from closing, set e.Cancel = True, and then hide the form, and do whatever you like. Just make sure you provide some way to close the program. Quote
Ariez Posted March 30, 2003 Author Posted March 30, 2003 All good thanx a lot VolteFace... Quote Auto-suggestion: "I have a life" Uncontroled thinking: "So what the.."
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.