I was able to add an event handler and pass each click event to the same subroutinue. However, now I do not have access to the event args that I need. I am trying to get the tag value of the item clicked on.
Any ideas how to get that from e? Private Sub MenuStrip_ItemClicked(ByVal sender As System.Object, ByVal e As System.EventArgs) Dim str As String = "" & e.ToString MsgBox("Tag value: " & str) End Sub You could also ask this same question as follows... I have a menustrip with a hardcode menu items. Each has a tag value. When the user clicks on the item, I want to pull the tag value. However, based on the parameters for the event, I cannot see how to get the tag. Any ideas? Private Sub Test1ToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Test1ToolStripMenuItem.Click Dim str As String = Test1ToolStripMenuItem.Tag End Sub This would work, but I need to use the parameters to pull the value as I will not know that Text1ToolStripMenuItem was the one selected. How do I find out which one was selected a get it's TAG value? Best regards, Greg =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com