c# - Determine control on which context menu was opened -
this question has answer here:
- context menu parent? 2 answers
i have winform application tekstbox controls connected contextmenustrip. if rightclick on textbox context menu (of course) opened. far can see contextmenustrip events don't give info control on context menu opened.
i can't use work-around looking @ focused control, rightclick doesn't give focus textbox (if hasn't have focus before rightclick).
so question is: how can determine control on context menu opened?
contextmenu has sourcecontrol property should able use :)
Comments
Post a Comment