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

how to call MouseDown event?

$
0
0
Code:

Private Sub lblLogin_MouseDown(sender As Object, e As MouseEventArgs)
If e.Button = MouseButtons.Left Then
                '''Do the login
End If
End Sub

Private Sub txtPword_KeyPress(sender As Object, e As KeyPressEventArgs)
If e.KeyChar = 13 Then
lblLogin_MouseDown(sender,e)
End If
End Sub

in this case lblLogin_MouseDown(sender,e)
is not functioning how to call my mousedown event when the key is pressed?

Thanks masters!

Viewing all articles
Browse latest Browse all 27333

Trending Articles



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