473,399 Members | 3,919 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 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 3426
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: meh | last post by:
I'm not sure if I have the right concept going. I am making a custom TabPage and executing it from a button click event. It works fine I'm just thinking I might be missing the finer points of the...
8
by: touf | last post by:
Hi, I've a tabcontrol that contains many similar tabpages (exactly the same structure with different information), the tabpages number isn't known in the design time it depends of the data. Is...
6
by: pmcguire | last post by:
I would like to disable a TabPage control so that my users can see that the page exists, but the selected index of the TabControl won't change if they click on the tab for it. Ideally, the TabPage's...
1
by: Nicolas | last post by:
Hi, I need to add a new tab page with some control to the Tools/Options Tab control in Outlook 2003, so I can have some settings for my add-in Does anybody have a clue because I don't? Thanks a...
4
by: Supra | last post by:
I have a tab control in a which a few of the tabs include an AxWebBrowser browser control. Let say i have currently tabpage2 and i typed url in combobox when i pressed enter it doesn't display...
4
by: Ratan | last post by:
I have a form that has a tabcontrol with 5 tabpages. i want to rename the tabpages in runtime. Actually i want to right click the tabpage i want to rename and edit the text there itself. How to...
6
by: ray well | last post by:
i want a user to be able to change tab pages thru the keyboard, i tried entering the TabPage.text as '&1 Names', "&2 Addresses', etc., so that the user can change pages by type ALT 1, ALT 2, on the...
2
by: Jeff | last post by:
..NET 2.0 How do I in the DrawItem event of a TabControl measure how wide the area displaying TabPage.Text need to be?? For example I've got a tabpage with the text property set to "hello...
0
by: Carlos | last post by:
How can I change the alignment of the text and icon displayed on a tabpage when using the fixed side mode. For some reason it comes out centered, including the icon and if the text is too long it...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.