An object-oriented programming language developed by Microsoft that can be used in .NET.
Hi
Here is a sample showing how to deal with multiple controls event handling in one Sub. Basically, add all event names to the Handles clause then in code, find which control called the event handler and code accordingly.
Private Sub lblBat1G_MouseMove(sender As Object, e As MouseEventArgs) Handles lblBat1G.MouseMove, lblBat2G.MouseMove
' NOTE: each Label added to the Handles clause
' cast the sender to a Label
Dim lab As Label = DirectCast(sender, Label)
' decide which Label is being used and
' switch accordingly
' continue to add cases for other labels
Select Case lab.Name
Case "lblBat1G"
' code for Label here
Case "lblBat2G"
' code for Label here
Case Else
' not recognised
End Select
End Sub