Programmatically hide a TabStripPage on a TabStrip

Docking/MDI for Windows Forms Forum

Posted 13 years ago by Rob Jones
Version: 2.0.0082
Avatar
I have a TabStrip that contains three TabStripPages. I would like to programmatically disable AND HIDE one of the TabStripPages. I can set its ENABLED property to false, but the tabstrip is still visible, AND it seems to respond to mouse clicks (my 'SelectionChanging' event handler gets called when I click the disabled tab).

Is this possible?

Rob

Comments (1)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
You can use the Active property to hide the tab.

When Enabled = false, the SelectionChanging event will still fire but will have its Cancel parameter set to true, thereby preventing a selection change unless you modify that.


Actipro Software Support

The latest build of this product (v2020.1 build 0400) was released 7 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.