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.
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.