471,605 Members | 1,354 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,605 software developers and data experts.

TabPage text disapearing

I have an odd occurrence taking place. This has been verified on two
different computers running Windows XP Pro, sp2 and Visual Studio 2005 Pro.

When I add TabControl to a Windows Form and change the Alignment property
from Top, to Left, the tab's test disappears and also does not show when the
application is run.

I have an older application developed in .NET Framework 1.1 that was
converted to 2.0 and while the tab's text does not display in the designer
for this either, it does show when the application is run.

I have tried several times to create a new Windows Form Applications and add
a tab control to test with the same result every time.

What am I missing here?

Thanks,

Dennis
Feb 15 '06 #1
5 3333
Hi Dennis,

Based on my research, this is a known issue in VS.NET 2005. If you have
VisualStyles enabled and set the left or right alignment, the Text Control
will disappear. I'm sorry, but currently, there is no good workaround to
this issue. But since it doesn't affect at runtime, please ignore it at
design time. Sorry for the inconvenience!

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Feb 16 '06 #2
The problem is, I'm not seing the tab page text when the application is run
either!

Thats a problem! What do I do?

Thanks,

Dennis
"Kevin Yu [MSFT]" <v-****@online.microsoft.com> wrote in message
news:10*************@TK2MSFTNGXA01.phx.gbl...
Hi Dennis,

Based on my research, this is a known issue in VS.NET 2005. If you have
VisualStyles enabled and set the left or right alignment, the Text Control
will disappear. I'm sorry, but currently, there is no good workaround to
this issue. But since it doesn't affect at runtime, please ignore it at
design time. Sorry for the inconvenience!

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Feb 16 '06 #3
Hi Dennis,

Sorry for the misunderstanding. With my research, you might be refering to
the following issue. This KB article might provide you with a workaround.

http://support.microsoft.com/default...b;en-us;905721

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Feb 17 '06 #4
I am implimenting option 2 in the KB (using Visual Styles) but ran into one
problem. The text is being drawn horizantally while the tab is vertical for
left alignment.

My DrawItem event for the TabControl looks like this:

private void tabControlViews_DrawItem(object sender, DrawItemEventArgs e)

{

Font font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point,
((byte)(0)));

SolidBrush brush = new SolidBrush(System.Drawing.SystemColors.ControlText );

Graphics g = e.Graphics;

Pen p = new Pen(Color.Blue);

g.DrawString("Transform", font, brush, tabControlViews.GetTabRect(0));

}

Can you give me a push in the right direction to finish this work around?

Thanks,

Dennis
"Kevin Yu [MSFT]" <v-****@online.microsoft.com> wrote in message
news:zB**************@TK2MSFTNGXA01.phx.gbl...
Hi Dennis,

Sorry for the misunderstanding. With my research, you might be refering to
the following issue. This KB article might provide you with a workaround.

http://support.microsoft.com/default...b;en-us;905721

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Feb 17 '06 #5
http://www.dotnetrix.co.uk/tabcontrols.html

http://www.skybound.ca/developer/vis...s/default.aspx

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html
"Dennis C. Drumm" <dc******@community.nospam> wrote in message
news:uq***************@TK2MSFTNGP11.phx.gbl...
I am implimenting option 2 in the KB (using Visual Styles) but ran into
one problem. The text is being drawn horizantally while the tab is vertical
for left alignment.

My DrawItem event for the TabControl looks like this:

private void tabControlViews_DrawItem(object sender, DrawItemEventArgs e)

{

Font font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point,
((byte)(0)));

SolidBrush brush = new
SolidBrush(System.Drawing.SystemColors.ControlText );

Graphics g = e.Graphics;

Pen p = new Pen(Color.Blue);

g.DrawString("Transform", font, brush, tabControlViews.GetTabRect(0));

}

Can you give me a push in the right direction to finish this work around?

Thanks,

Dennis
"Kevin Yu [MSFT]" <v-****@online.microsoft.com> wrote in message
news:zB**************@TK2MSFTNGXA01.phx.gbl...
Hi Dennis,

Sorry for the misunderstanding. With my research, you might be refering
to
the following issue. This KB article might provide you with a workaround.

http://support.microsoft.com/default...b;en-us;905721

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."


Feb 18 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by meh | last post: by
8 posts views Thread by touf | last post: by
6 posts views Thread by pmcguire | last post: by
4 posts views Thread by Supra | last post: by
4 posts views Thread by Ratan | last post: by
6 posts views Thread by ray well | last post: by
reply views Thread by Carlos | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by MichaelMortimer | last post: by
reply views Thread by CCCYYYY | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.