Start Application with Hidden Form

E

Eddie

Hi All,

How may I start my Application with no visible Form. I just want to add A
NotifyIcon in the systray. When the user DoubleClick my NotifyIcon, I will
show the Form...

(Like MSN Messenger)

Thx for your help !

Eddie
 
H

Herfried K. Wagner [MVP]

* "Eddie said:
How may I start my Application with no visible Form. I just want to add A
NotifyIcon in the systray. When the user DoubleClick my NotifyIcon, I will
show the Form...

\\\
Public Class AppMain
Public Shared Sub Main()

' Add icon here.
Application.Run()
End Sub
End Class
///

Don't forget to set the project's startup object to 'Sub Main' in the
project properties.
 
E

Eddie

Works Perfectly !!

Thank you...


Herfried K. Wagner said:
\\\
Public Class AppMain
Public Shared Sub Main()

' Add icon here.
Application.Run()
End Sub
End Class
///

Don't forget to set the project's startup object to 'Sub Main' in the
project properties.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top