I'm using DotNetBar
component SuperTabControl
, and I want to display the context menu if the user right click a tab, I found the following code but the problem is my SuperTabControl
doesn't have the GetTabRect function.
if (e.Button == MouseButtons.Right)
{
for (int i = 0; i < this.superTabControl1.Tabs.Count; ++i)
{
Rectangle r = this.superTabControl1.GetTabRect(i);
if (r.Contains(e.Location))
{
//display menu
}
}
}