I know this question has been asked many times but i just cant find the code i want. What i have works but it also minimizes it and i dont want that to happen. I just want it to go to the system tray them whem you click it, it gets restored. heres what i got:
VB Code:
  1. Private Sub NotifyIcon1_MouseDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles NotifyIcon1.MouseDown
  2.         Me.WindowState = FormWindowState.Normal
  3.         Me.NotifyIcon1.Visible = False
  4.         Me.ShowInTaskbar = False
  5.     End Sub
  6.  
  7.     Private Sub MenuItem18_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem18.Click
  8.         Me.NotifyIcon1.Visible = True
  9.         Me.WindowState = FormWindowState.Minimized
  10.         Me.ShowInTaskbar = False
  11.     End Sub