Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 625
  • Last Modified:

C# Align text on label.

How to align the text on label.  
For example:

123
87
383787

How to align these three values ¿¿in three labels on the right, to make them like this:
      123
        87
 383787

Thank you,
ocaccy
0
ocaccy
Asked:
ocaccy
  • 2
2 Solutions
 
jppintoCommented:
labelName.Autosize = False;
labelName.TextAlign  = TopRight;
0
 
AndyAinscowCommented:
Autosize property to true and I prefer a different alignment - see attached pictures.
0003.jpg
0004.jpg
0
 
AndyAinscowCommented:
Sorry - autosize property is default true, change it to false.
0
 
ocaccyAuthor Commented:
This reply solves my problem!
Thank you.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now