Hello!
I want it that every time the user double clicks anywhere in my program, it hides the program to the Tray. For this I used this code, but it's not working for unknown reasons:
I want it that every time the user double clicks anywhere in my program, it hides the program to the Tray. For this I used this code, but it's not working for unknown reasons:
Code:
Private Sub Form1_MouseDoubleClick(sender As Object, e As MouseEventArgs) Handles Me.MouseDoubleClick
If e.Button = Windows.Forms.MouseButtons.Left Then
NotifyIcon1.Visible = True
Me.Hide()
End If
End Sub