me.Hide

Ariez

Centurion
Joined
Feb 28, 2003
Messages
164
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
 
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.
 
Back
Top