I was wondering if anyone knew how to do a hit test on the tabcontrol. I want to allow a user to right click only on the tab header and display options from a context menu strip. The problem is if I set the Tab Control context menu to my menu then the user can click anywhere they want. I need to be able to restric them to only right clicking on the Active tabs header. Any help would be great.
Thanks
Chris.
The tab control has a TabFromPoint method which you can use to determine which tab item is at a specific point in client coordinates of the tab control.
Mike Dour"]The tab control has a TabFromPoint method which you can use to determine which tab item is at a specific point in client coordinates of the tab control.
Is there a way for me to stop the context menu showing if I already have it assinged to the tab control. If they do not click on the selcted tab I dont want context menu to popup.
Thnaks,
Chris