Left Alignment issue with TabConrol

S

Scott Ocamb

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.
 
M

Mick Doherty

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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top