My form icon is my NotifyIcon too.
This is what I done & it works perfectly!!
Create a module & make it the startup
Module modStart
Public Sub main()
Dim frm As New Form1
frm.ShowInTaskbar = False
frm.Opacity = 0
Application.Run(frm)
frm.Dispose()
End Sub
End Module
--------------
Sub New (form):
' Give the form a title
Me.Text = "Your Title"
' Set the icon of the tray control
Tray.Icon = Me.Icon
' Set the text of the tray control to the form's text
Tray.Text = Me.Text
Form Closing Event():
' Cancel closing the program
e.Cancel = True
' Show the NotifyIcon icon
Tray.Visible = True
' Hide your form
Me.Hide()
-------------------------------
Use this code to show the form:
Private Sub ShowForm()
' Check to see if the form is visible
If Not Me.Opacity = 100 Then
' If not, show it in the taskbar
Me.ShowInTaskbar = True
' Make the form visible
Me.Opacity = 100
End If
' Show the form
Me.Visible = True
' Activate it so, its on top of other forms
Me.Activate()
' Remove the NotifyIcon icon
Tray.Visible = False
End Sub
---------------------------------------------
On double click (Icon (System Tray)):
Just call the above sub
----------------------------------------------
I hope this helps