Hai
i want to display vertical text in a panel to display the days and time vertically.
Please forward me any suggestions u have
Thanks and Regards
VInay Kumar
Printable View
Hai
i want to display vertical text in a panel to display the days and time vertically.
Please forward me any suggestions u have
Thanks and Regards
VInay Kumar
You need to use the Panel's Paint event handler to draw the text using GDI+. Call the e.Graphics.DrawString method to draw the desired text. Some overloads allow you to specify a StringFormat object, which has a FormatFlags property. You can set the DirectionVertical bit for this value:Code:private void panel1_Paint(object sender, PaintEventArgs e)
{
e.Graphics.DrawString("Hello World",
this.panel1.Font,
Brushes.Black,
10,
10,
new StringFormat(StringFormatFlags.DirectionVertical));
}
Thank u so much for getting me the solution
But when i kept scrollbar for panel as it should contain many controls, when i am changing the scroll the text is getting changed and getting deleted.
Please solve this one too
Waiting for ur reply
Thanks and Regards
VInay Kumar