One more thing, instead of tags, you may use the following trick to find out which control was clicked:
vb.net Code:
Private Sub Label1.MouseDown(ByVal sender As System.Object, _ ByVal e As System.Windows.Forms.MouseEventArgs) _ Handles Label1.MouseDown, _ Label2.MouseDown, _ Label3.MouseDown 'etc... Dim lbl As Label = CType(sender, Label) 'This line will get you the exact label that was clicked End Sub





Reply With Quote