vb.net form minimized with system tray

  • Thread starter Thread starter dave
  • Start date Start date
D

dave

I am trying to start my application hidden and showing
only the system tray icon.

I have set the property showintaskbar=false however, i
still see a minimized box in the lower left of my screen.

How do i get rid of this?

thx
dave
 
Hi dave

Thanks for you posting in the group!

My idea is setting your project's "Project\Appname Properties...\Startup
Object:" to "Sub Main",
then Add a Module to your project, in that Module create a Sub Main.

In the Sub Main, you can instantiate your main form(e.g. Form1) as
Dim frmMain as New Form1 (Note: it is being create invisible)

To show the Form1:
frmMain.Show()
frmMain.Update()

To hide the Form1:
frmMain.Hide()


Wish it helps!

Best regards,

Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
 
Back
Top