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:
Private Sub NotifyIcon1_MouseDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles NotifyIcon1.MouseDown Me.WindowState = FormWindowState.Normal Me.NotifyIcon1.Visible = False Me.ShowInTaskbar = False End Sub Private Sub MenuItem18_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem18.Click Me.NotifyIcon1.Visible = True Me.WindowState = FormWindowState.Minimized Me.ShowInTaskbar = False End Sub


Reply With Quote
