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 ??
Last edited by R@emdonck; Dec 31st, 2002 at 09:11 AM.
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
Using VB.NET 2003/.NET 1.1/C# 2.0 http://del.icio.us/rajoo
Blow your mind, smoke gunpowder
Ashes to ashes, dust to dust
If God won't have you, the devil will. - Author unknown
Don't follow me, I'm lost too ...