-
ContextMenu (SOLVED)
Hi,
I have a form with a textbox and a button
When I click the button, a contextmenu pops up.
this menu has 4 items ("car, "bike", "plane", "ship")
When the user clicks on one of those items, I would like the text of this item to be displayed in the textbox.
How do I do this ??
-
You have to create an instance of the ContextMenu class, populate the necessary properties and then assign it to the ContextMenu property of the form.
If you using VS.NET do a search on "ContextMenu", the first item will be "Adding Context Menus to windows forms" and you will have all the necessary instructions to do what you're looking for.
Happy New Year
-
1 Attachment(s)
is this what you're talking about ?
-
Solved
I solved my problem with an inherits from contextmenu
Thanks for the effort