Is there a way to disable a tab in tab control while others are available? I've tried basic naming the tabcontrol and tab and .Enabled = False, but it didn't seem to work. Help?
my example use the tab control with default name. The code below will disable the page 2 of tabcontrol. You don't need to specify the control first. Code (Text): TabPage2.Enabled = False
There's no error for the one you gave me (Tharoux), but it made no difference. I can still go to it and stuff... EDIT: Never mind, I can't do anything there. I was kinda looking more for it to be not visible.
You could possibly remove the tab at runtime to make it not visible, but I'm sure it could mess up some of your coding if you're referencing to the tabcontrol's tabs using indexes.