G
Guest
I want to center-align the text in 2 Label controls, and I want the 1st char of their text to line up
------------------------------------------------------------------------------
label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
label1.Text = "IDLE"; //4 char strin
label2.Text = "RUN ";//4 char string,
//but trailing space ignored and it is centered as thoug
//it has only 3 chars
------------------------------------------------------------------------------
Is there a way to make the Label control center "Run " (with a trialing space) as though it is 4 chars long
thanks
Mark Urish
------------------------------------------------------------------------------
label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
label1.Text = "IDLE"; //4 char strin
label2.Text = "RUN ";//4 char string,
//but trailing space ignored and it is centered as thoug
//it has only 3 chars
------------------------------------------------------------------------------
Is there a way to make the Label control center "Run " (with a trialing space) as though it is 4 chars long
thanks
Mark Urish