I am trying to share mouse events (click, up, down, move and the such) for
30 different label controls: Here is my code:
Dim myLabel as Label
Private Sub lblP1JoyUp_MouseDown(ByVal sender As System.Object, ByVal e As
System.Windows.Forms.MouseEventArgs) Handles lblP1JoyUp.MouseDown
myLabel = lblP1JoyUp
myLabelMouseDown()
End Sub
Public Sub myLabelMouseDown()
If e.Button = MouseButtons.Left Then
My code here
ElseIf e.Button = MouseButtons.Right Then
My code here
End If
End Sub
The problem is that it tells me "e" isn't declared. Am I missing something
with my handlers? I thought I had this working at one time with help from
Cor but can't find it no how.
Thanks,
John