Matt
Matt

Reputation: 27001

In a winforms tabcontrol, is there a way to make a certain tab visible but not selectable?

In a winforms tabcontrol, is there a way to make a certain tab visible but not selectable? I can make it Visible = false, but I would like the tab to show up but simply not be clickable/selectable.

Upvotes: 1

Views: 293

Answers (1)

Henk Holterman
Henk Holterman

Reputation: 273701

You can handle the Selecting event and set Cancel=true when it is that special Tab.

Upvotes: 4

Related Questions