0

I have a Label inside a GroupBox. The RightToLeft property of Form, GroupBox and Label are Yes. The Auto-Size property of the Label is True. The Text of the Label is set at run-time. The problem is that the label grows from left to right instead of right to left. How can I solve the problem?

Mohsen
  • 971
  • 2
  • 11
  • 29
  • 1
    Possible duplicate of [Label grow from right to left](http://stackoverflow.com/questions/5612148/label-grow-from-right-to-left) – Sebi Dec 13 '16 at 08:25

1 Answers1

1

Possible duplicate with this: Label grow from right to left

Basically Auto-Size property needs to be false.

Community
  • 1
  • 1
Hadar Ben David
  • 189
  • 1
  • 8
  • If I set the Auto-Size to false then do I have to set Width for the label? – Mohsen Dec 13 '16 at 09:10
  • 1
    You can do a pre-measurement of the label size. Please see here: http://stackoverflow.com/questions/388937/determine-label-size-based-upon-amount-of-text-and-font-size-in-winforms-c – Hadar Ben David Dec 13 '16 at 09:37