views:

10

answers:

0

Is there a way to catch a click event on a TabControl tab so that you can say if clicked at a certain point that it doesn't switch to the clicked tab?

Here is the code that is used to find the area that if clicked in i do not want it to switch tabs.

RectangleF closeArea = (RectangleF)tabStrip2.DisplayRectangle;
            closeArea = new RectangleF(closeArea.X + closeArea.Width - 16, 10,
                10, 10);

Thanks!