Context Menu Added To Tab Control

J

jamil

I have a tab control on a form with several tab pages. I have also
added a context menu to the tab control that contains a couple of menu
items-- Add and Delete. What I would like to do is right-click any
tab (not just the currently selected tab) and perform a selected
context menu choice on the tab.

I have spent a couple hours trying to get this to work with no success
so far. I am unable to determine which tab the user right-clicked,
and I see no properties that provide this information.

For now, the context menu works on the currently selected tab whether
or not the user actually clicked that tab. This is not a good
solution though. I have tried adding the context menu to the tab
page instead, but this does not work for tabs that are not currently
selected.

Any thoughts on this?

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top