Left Alignment issue with TabConrol

Discussion in 'Microsoft Dot NET Framework Forms' started by Scott Ocamb, Jul 7, 2009.

  1. Scott Ocamb

    Scott Ocamb Guest

    All,
    I have a TabControl with Allignment set to left. This results in the tabs
    being verticaly aligned.

    All is fine on Vista machines, but "it seems" on xp machines the rendering
    of the UI is wrong. The text of the tabs does not appear.

    any help would be appreciated.
     
    Scott Ocamb, Jul 7, 2009
    #1
    1. Advertisements

  2. Scott Ocamb

    Mick Doherty Guest

    It's a known issue. The Text is drawn but in the wrong place. It's not
    classed as a bug as Visual styles only supports Top Aligned Tabs.

    Either draw the tabs yourself (you'll either lose Visual Styles or have a
    fair amount of work restoring them) or use a third party TabControl instead.
    See some of the tips on my site for the basics of ownerdrawing the
    tabcontrol.
    http://dotnetrix.co.uk/tabcontrol.htm

    TabControlEx and TabControl 2 are free to use in any way you wish and they
    both overcome this issue as well as several others.
    http://dotnetrix.co.uk/controls.htm

    If you only want to overcome this issue, then I would suggest that you use
    TabControl 2, but TabControlEx has some other frequently requested features
    which you may or may not like.

    "Scott Ocamb" <> wrote in message
    news:uZWvyRz$...
    > All,
    > I have a TabControl with Allignment set to left. This results in the tabs
    > being verticaly aligned.
    >
    > All is fine on Vista machines, but "it seems" on xp machines the rendering
    > of the UI is wrong. The text of the tabs does not appear.
    >
    > any help would be appreciated.
     
    Mick Doherty, Jul 8, 2009
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Paul K

    Label text-alignment problems???

    Paul K, Jul 25, 2003, in forum: Microsoft Dot NET Framework Forms
    Replies:
    0
    Views:
    562
    Paul K
    Jul 25, 2003
  2. Abdolhosein Vakilzadeh Ebrahimi

    Slow ListView while Alignment is TOP

    Abdolhosein Vakilzadeh Ebrahimi, Aug 26, 2003, in forum: Microsoft Dot NET Framework Forms
    Replies:
    0
    Views:
    297
    Abdolhosein Vakilzadeh Ebrahimi
    Aug 26, 2003
  3. Tim Conner

    Alignment of columns in datagrid

    Tim Conner, Nov 28, 2003, in forum: Microsoft Dot NET Framework Forms
    Replies:
    2
    Views:
    388
    René Meinecke
    Dec 4, 2003
  4. Eric K

    Right alignment on Winforms Data Grid cuts off text on right.

    Eric K, Dec 29, 2003, in forum: Microsoft Dot NET Framework Forms
    Replies:
    3
    Views:
    761
    Ken Tucker [MVP]
    Dec 30, 2003
  5. Guest

    Cannot change ListView first column text alignment

    Guest, Jan 7, 2004, in forum: Microsoft Dot NET Framework Forms
    Replies:
    2
    Views:
    2,009
    Claes Bergefall
    Jan 7, 2004
  6. Guest

    Right alignment on Winforms Data Grid cuts off text on right

    Guest, Jan 19, 2004, in forum: Microsoft Dot NET Framework Forms
    Replies:
    0
    Views:
    249
    Guest
    Jan 19, 2004
  7. Guest

    TabControl wiht Alignment left and horizontal Text

    Guest, Feb 10, 2005, in forum: Microsoft Dot NET Framework Forms
    Replies:
    1
    Views:
    5,326
    Mick Doherty
    Feb 10, 2005
  8. Guest

    TabControl Alignment Issue

    Guest, Sep 25, 2005, in forum: Microsoft Dot NET Framework Forms
    Replies:
    0
    Views:
    356
    Guest
    Sep 25, 2005
Loading...