Right-aligned labels in WinForms

后端 未结 9 1504
甜味超标
甜味超标 2021-01-07 15:59

The most obvious way to right-align a Label in WinForms doesn\'t work: setting anchor to Top/Bottom Right and TextAlign to TopRight. If the text changes the lab

9条回答
  •  轮回少年
    2021-01-07 16:28

    The best solution for me was:

    1. Set the AutoSize property labels to false. Set the TextAlign
    2. property labels to something on the right.
    3. Resize manually the labels 1 by 1 so they can use more space.

提交回复
热议问题