I have some dynamically create labels with a context menu strip. When you right click the label it give you a context menu strip. How can I get their text when I click an item in their context menu strip? I know this is a really simple question but I need some help. I've tried
Private Sub DeleteToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DeleteToolStripMenuItem.Click
MsgBox(sender.Text)
End Sub
I'm trying to get the text of the label that generated the contextmenustrip.