You need to add a NotifyIcon Control to your VB Form
Then, use the followig code as example:
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Private Sub RestoreWindow()
Me.Show()
Me.WindowState = FormWindowState.Normal
Me.Focus()
End Sub
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Private Sub f_<SomeFormName>_Resize(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Resize
If Me.WindowState = FormWindowState.Minimized Then
Me.Hide()
endif
End Sub
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Private Sub NotifyIconMain_DoubleClick(ByVal sender As Object, ByVal e As
System.EventArgs) Handles NotifyIconMain.DoubleClick
RestoreWindow()
End Sub
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
<pa***********@libero.it> wrote in message
news:11*********************@g14g2000cwa.googlegro ups.com...
Hello guys,
I have done a small utility and would like that an image be displayed
on the the windows tray (on bottom-right of the screen).
Also I would like that when one clicks on X (close) the application be
minimized and only the tray icon be visible.
When one clicks on the tray icon the application shoud return to its
normal status (normal/maximized, depending how it was when was
minimized).
Any suggestion or help on how to do that?
Any sample would be much apprecciated!
Thank you very much in advance!
-Pam