Programmatically hide a TabStripPage on a TabStrip

Docking/MDI for Windows Forms Forum

Posted 17 years ago by Rob Jones
Version: 2.0.82
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?


Comments (1)

Posted 17 years ago by Actipro Software Support - Cleveland, OH, USA
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 (v24.1.0) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.