Solved

Text hidden / disappears on tabControl when alignment is left or right and appearance is normal.

Posted on 2008-10-03
6
676 Views
Last Modified: 2008-10-05
I'm using visual studio 2008. When I set a tabControl alignemt to left or right and set the appearance to normal the text disappears from the tab buttons(See image 1 link below).  And if set the alignment to left or right and set the appearnace to buttons. The work area (represented by the outlined box. See image 2 link below) is shifted all the way to the right.  
How can fix this problem?

http://s220128907.onlinehome.us/

The goal is to have the text appears in the tab buttons as the appear in image# 2 but have the work area occupy 100% of the available space.
0
Comment
Question by:slightstk
  • 3
  • 2
6 Comments
 
LVL 18

Expert Comment

by:Priest04
ID: 22640428
Hello, slightstk

this is a know behavior, and the workaround would be to set the DrawMode property to OwnerDrawFixed and to add custom code to draw the tabs. There is an article on MSDN that shows you how to do this, but I cant find it at the moment, seems to me that the site is down for some purpose.

Goran
0
 
LVL 2

Assisted Solution

by:madivad2
madivad2 earned 200 total points
ID: 22644491
0
 
LVL 18

Expert Comment

by:Priest04
ID: 22644747
Yes, that's the link what didn't work yesterday when I tried to look at it.
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:slightstk
ID: 22645256
Ok this solves 50% of the problem but now I'm left with tabs that has text stacked on top of each other in some cases. 2 chars per line  See image# 3.  How do I get the text to rotate 90 Degrees to appear in the tabs as they do in image# 2?

http://s220128907.onlinehome.us/
0
 
LVL 18

Accepted Solution

by:
Priest04 earned 300 total points
ID: 22645332
When creating StringFormat, pass flags to its constructor

Dim _StringFlags As New StringFormat(StringFormatFlags.DirectionVertical)
0
 

Author Comment

by:slightstk
ID: 22645354
Great that fixed it Priest04.  Thanks for your help.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now