Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Single and Double click is not working together

$
0
0

Hi,

I have written some code on single_click and Double_click event of the form, but it is always executing single_click code not Double_click() event code even though I am pressing double click.

Here is code-

 Private Sub TestForm_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Click
        'MessageBox.Show("Single Click")
    End Sub

   Private Sub TestForm_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.DoubleClick
        MessageBox.Show("Double Click")
    End Sub

If I am commenting Single_click code then only Double_click event is firing.

Please suggest me solution, I want to execute both code blocks.

Thanks in advance.



Viewing all articles
Browse latest Browse all 12583

Latest Images

Trending Articles



Latest Images