c# - Determine control on which context menu was opened -


this question has answer here:

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

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

php - Boolean search on database with 5 million rows, very slow -

css - Text drops down with smaller window -