Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Im using a notify icon control and i wanna have the form hidden while the icon is in the tray. I set "me.visible = false" but this causes the showdialog method to end. Is there any way to hide the form without the showdialog method ending?

 

thanx for any replies

  • *Experts*
Posted

Are you using ShowDialog in a Sub Main to show your form? This

sounds like the case, and if it is, you should use Application.Run

to show the form instead. Then you can still hide and show it,

and your program should not exit.

 

In Sub Main:

Dim myForm As New Form1()

Application.Run(myForm)

"Being grown up isn't half as fun as growing up

These are the best days of our lives"

-The Ataris, In This Diary

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...