ContextMenuStrip Help

Do you need something made? then ask in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
2 posts Page 1 of 1
Contributors
User avatar
M1z23R
VIP - Donator
VIP - Donator
Posts: 622
Joined: Tue Sep 28, 2010 4:55 pm

ContextMenuStrip Help
M1z23R
So, i have ContextMenuStrip that is shown on button click, and is also filled with items, like this :
Code: Select all
ContextMenuStrip.Items.Clear
ContextMenuStrip.Items.Add("Test1")
ContextMenuStrip.Items.Add("Test2")
ContextMenuStrip.Items.Add("Test3")
ContextMenuStrip.Items.Add("Test4")
How can i get what item is selected using :
Code: Select all
Private Sub ContextMenuStrip2_ItemClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ToolStripItemClickedEventArgs) Handles ContextMenuStrip.ItemClicked
User avatar
M1z23R
VIP - Donator
VIP - Donator
Posts: 622
Joined: Tue Sep 28, 2010 4:55 pm

Re: ContextMenuStrip Help
M1z23R
e.ClickedItem.Text

Found it my self :) Locked ! Sorry about this !
2 posts Page 1 of 1
Return to “Tutorial Requests”