Gary Willoughby
Gary Willoughby

Reputation: 52608

How to get the parent control from an assigned context menu using C#?

I have a few listview controls on a windows form and i've assigned a common contextmenustrip to them all using the properties grid in VS2005.

Now when a selection is made from the contextmenu in any listview, is there a way i can get the correct hosting control of the raised menu?

Upvotes: 5

Views: 4712

Answers (1)

Related Questions