Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27554

Doubleclick event is not working

$
0
0
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:


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


Viewing all articles
Browse latest Browse all 27554

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>