Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Auto-suggestion: "I have a life"

Uncontroled thinking: "So what the.."

  • *Experts*
Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...