How about:
code:
Private Sub Form1_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Resize
If Me.WindowState = FormWindowState.Minimized Then
NotifyIcon1.Visible = True
Else
NotifyIcon1.Visible = False
End If
End Sub
Is this the sort of thing needed? (Again, I'm really not experienced at all with .Net so it may not be 100% correct
)
Of course using this then the NotifyIcon1.Visible property would have to be changed programmatically at runtime at the form's load procedure (NotifyIcon1.Visible = false) or by setting its property in the VB IDE.