Windows Develop Bookmark and Share   
 index > Windows Forms General > Controlling Tab appearance
 

Controlling Tab appearance

How can one make a tabs in a Tab/Control disabled or invisible? There are no Enabled or Visible properties like you'd expect from other controls?
MigrationUser 1  Tuesday, June 08, 2004 10:59 PM
Invisible = Remove.
Disabled = DrawStyle-->OwnerDrawFixed and draw the TabItems yourself using ControlPaint.DrawStringDisabled to draw the text.

You might like to take a look at some of my vb.net examples here:
http://homepage.ntlworld.com/mdaudi100/alternate/tabcontrols.html
MigrationUser 1  Thursday, June 10, 2004 5:21 AM
Curious that this isn't possible (as far as I strumbled through the help) It would be the most simple way to implement a wizzard type of control or something simular. Of course this could be implemented with some other collection of windows, but this looks like an interesting option to add to the Tab Control.

Related, though the alignment can be set to Left or Right, I couldn't find a way to orient the text upward (most natural for Left) or downward (for right), (which is text-angle 90 / -90 degrees). Topdown text (single character downwards) in either case is also an option of course, but not my preference.
MigrationUser 1  Thursday, June 10, 2004 7:09 AM

You can use google to search for other answers

Custom Search

More Threads

• TreeView Selection...
• lots of label and textbox control on form
• TextRenderer?
• DaataGridView column order
• CurrencyManager.AddNew or DataView.AddNew
• windows forms InvokeRequired question (and 1 more question)
• how to fill the margin in a tabcontrol with color?
• Form not displayed correctly after locking and unlocking desktop
• Assigning to TreeView.SelectedNode
• How to bypass print dialog