Reputation: 77
I have a
labelControl.Text ="My name:";
Result is
:My name
Symbols changes place.
If I write "&= My name"
, the result is =& My name
.
How do I stop it from changing places?
Upvotes: 2
Views: 108
Reputation: 43876
You need to set the RightToLeft
property correctly. By default this should be RightToLeft.Inherit
. But either your Form
or your Label
was set like:
labelControl.RightToLeft = RightToLeft.Yes;
You need to set it to RightToLeft.No
or RightToLeft.Inherit
(if the parent control has it set to No
).
Upvotes: 2