Click here to Skip to main content
16,021,687 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have TabControl in my project.
I want to navigate between tab just manually.
Is there any event to override for disabling TabPage_header_click or Sth like that?

Thanks for your time.
Posted

1 solution

I just create my own TabControl after some searches:
C#
public class WizardTabControl : TabControl
{
    protected override void WndProc(ref Message m)
    {
        // Hide tabs by trapping the TCM_ADJUSTRECT message
        if (m.Msg == 0x1328 && !DesignMode)

           m.Result = IntPtr.Zero;

        else

           base.WndProc(ref m);
    }
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900