Z
Z.K.
How does one align text in a textbox?
I tried this,
lblPrompt.TextAlign = ContentAlignment.MiddleCenter;
but it always displays to the far right. I even set it in the control's
property on the design form and still it goes way to the right. The
only way I was able to get it to work properly was to position the
control way to the left. Why is it when I center the control on the
form, the text that I send to the label will not align properly.
Z.K.
I tried this,
lblPrompt.TextAlign = ContentAlignment.MiddleCenter;
but it always displays to the far right. I even set it in the control's
property on the design form and still it goes way to the right. The
only way I was able to get it to work properly was to position the
control way to the left. Why is it when I center the control on the
form, the text that I send to the label will not align properly.
Z.K.