you could do the following...
VB Code:
Private Sub MenuItem8_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem8.Click If TypeOf sender Is TextBox Then MsgBox("you have just right clicked " & CType(sender, TextBox).Name) End If End Sub





Reply With Quote