mickn66
Well-known member
- Joined
- Nov 2, 2002
- Messages
- 53
Ok, heres the situation. My program creates in code a context menu called mnuContextMenu, to which I add menuitems with code like mnuContextMenu.MenuItems.Add(txt.Text).
I want all of the items in this context menu to do the same things when clicked, namely copy the text of the menuitem to the clipboard. I know how to copy things to the clipboard, what I dont know how to do is create an event handler for these programmatically-added menuItems. Please help! Thanks.
I want all of the items in this context menu to do the same things when clicked, namely copy the text of the menuitem to the clipboard. I know how to copy things to the clipboard, what I dont know how to do is create an event handler for these programmatically-added menuItems. Please help! Thanks.