Jump to content

Quick Question: Label Text Alignment

- - - - -

  • Please log in to reply
1 reply to this topic

#1
jashsayani

jashsayani

    Learning Programmer

  • Members
  • PipPipPip
  • 41 posts
Hi,

I am new to C# and Visual Studio 2010. The last Microsoft environment I worked on was VB 6. I have a quick question: How do I change the Text alignment of a label?

I am trying to use this is a calculator-like application. I want numbers to be added on the right and the previous numbers to be pushed on left. Currently the numbers are added to the right and they go out of the window.

Thanks.

#2
Momerath

Momerath

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 242 posts
To change the alignment of a label you set the TextAlign property to one of the values of ContentAlignment.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users