Cloned Menuitem

Muzza

New member
Joined
Mar 13, 2005
Messages
2
Location
New York
Programming Experience
10+
This just seems too simple to be asking for this but I cannot for the likes of me do this neatly. I was playing around with cloned menuitems to see how practical they could be. I created a set that would be used by text boxes so when the selection was made and the menuitem's click event activated, I suddenly found that I could not determine which context menu was the parent, as both IsParent values were true, which meant I could not get the right sourcecontrol i.e. the text box I want to manipulate. I am sure I need to get it from system.object that is sent with the click event but I can't see a nice clear path. Anybody got any bright ideas of how to determine the text box that raised the contextmenu in the first place?
 
Back
Top