Hi,
how can i rotate a text (label) 90 degrees in Visual Studio, like the vertical tabs(e.g. Toolbox on the left)?
Thanx in advance
Schirr
Printable View
Hi,
how can i rotate a text (label) 90 degrees in Visual Studio, like the vertical tabs(e.g. Toolbox on the left)?
Thanx in advance
Schirr
you will need to have the Paint Method overloaded and write the text manually.
-Paresh
Thx, but that sounds too hard for me, as i'm relative new to programming.
So, if anyone knows an easier way, i would be very grateful.
Schirr
Here's some sample code to work with:
this.Paint += new PaintEventHandler(DrawTab);
Private void DrawTab()
{
base.OnPaint();
Graphics g = this.CreateGraphics();
g.Clear(this.BackColor);
g.DrawString( "hello world",
this.Font,
new SolidBrush(this.ForeColor),
0, 0,
new StringFormat(StringFormatFlags.DirectionVertical));
}
see there you go.. thanks for the sample. was bit lazy for overriding the paint :D :D
Thx a lot for the sample, on my own i'd never get that, i'm still learning the language and i don't know what's possible.
:)
no problem, post your problem and someone will definitely solve it ;) :cool: