By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,678 Members | 1,920 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,678 IT Pros & Developers. It's quick & easy.

Alignment problem in TabControl

P: n/a
Hi all

In a Visual Studio 2005 C# project, I have a simplest tabcontrol with two
tabpages. When I set tab control's Alignment property to Right, tab texts
(captions) disappear.
Does anybody know how to fix this?

I tried this on two computers, at work and at home, both with Windows XP
with latest service packs, and Framework 2.0 and 3.0 with latest SP.

Thank you
Alex

Jan 27 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
This is a Visual Styles issue. TabControl does not support Visual Styles for
alignments other than top.

You can use SetWindowTheme via Interop to disable Visual Styles for the
TabControl whilst keeping it enabled for other controls, or you can
ownerdraw the tabcontrol.

Alternatively, use a third party TabControl.

On my site you will find a two TabControls which correct this issue. The
first (TabControlEx) is a Framework 1.1 TabControl and the second
(TabControl) is a Framework 2.0 TabControl. The second doesn't have all the
features of TabControlEx, but it Implements Visual Styles much better.
http://www.dotnetrix.co.uk/controls.html

--
Mick Doherty
http://www.dotnetrix.co.uk/nothing.html
"Alex K." <Al***@discussions.microsoft.comwrote in message
news:EA**********************************@microsof t.com...
Hi all

In a Visual Studio 2005 C# project, I have a simplest tabcontrol with two
tabpages. When I set tab control's Alignment property to Right, tab texts
(captions) disappear.
Does anybody know how to fix this?

I tried this on two computers, at work and at home, both with Windows XP
with latest service packs, and Framework 2.0 and 3.0 with latest SP.

Thank you
Alex

Jan 27 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.