I create a new WindowForms app and drag a tabcontrol on it.
It has (by default) two pages.
When I set the Alignment to left (or right) the Text disappears and the Multiline property is set to true.
The text is visible if I use Button or Flatbutton but not with normal.
The positive - in .NET 1.1 new added pages "stacked" and now they are vertical one after another.
But with the buttons and multiline it makes a big distance ("border") between the buttons and the pages.
Is it possible to have the thing with a visible left text in Appearance Normal?
Of course I not only showed the MS guys earlier in the beta how to overcome this problem, but sent them code so that rendering works top/bottom/left/right with visual styles, so this is simply a matter of appathy thinking that it's acceptable to release a control that doesn't work in 3 out of 4 cases....
Something like the broken DateTimePicker and the combo box that doesn't allow ID/Name lists that aren't bound to data sources STILL even though we had it in VB6....
here is a link to get around this problem ,the result isnt always pretty but if its of use ....
TabControl with VisualStyles only supports Top Alignment. At other alignments the image used to draw the tab will not be rotated and, if vertical, the text will not be rotated.
Without VisualStyles the text and tab will draw correctly regardless of alignment.
This problem can be overcome through OwnerDraw, but the solution may be much more work than you are prepared to put in. You will find some very basic OwnerDraw examples on my site at http://www.dotnetrix.co.uk/tabcontrols.html as well as some more complex examples on codeproject (you'll find links to these on the page linked to above).
I have created a subclass of TabControl which corrects these errors and also adds support for mnemonics and disabled tabs.
On the webpage at the link below, you will find 2 tabcontrols. The first called TabControlEx is a Framework 1.1 control and has an issue that results in oversized Tabs (as does the standard TabControl when DrawMode is set to OwnerDrawFixed) but which will work just fine in Framework 2.0. The second is a much simpler version of the control written for Framework 2.0, which corrects the tab size as well as correcting Visual Styles for alignments other than top.These are both available from my site at http://www.dotnetrix.co.uk/controls.html and are free to use in any way you wish (commercially or not).
I am using vb.net 2005 and I ran into the same problem described here, when I am using tabs.
I am trying to align my tabs to the left and the text is gone. If I change the appearance to buttons then the text is back, but there is a big gap between the buttons and the pages.
Please let me know if there is a way to get around this problem. JohnGalt, is the code that can fix this problem still available?
Me.TabControl1.Alignment = System.Windows.Forms.TabAlignment.Left
(The Text in the tabs is gone.)
Me.TabControl1.Appearance = System.Windows.Forms.TabAppearance.Buttons
(I can get the text back, but there is a big gap between the tabs and the pages)