How to make label text right aligned in visual studio?
In Visual Studio, WinForms, I want to make the text of the label aligned to the right. I have used the property RightToLeft = Yes
, but the problem as follows occur:
The label Name :
becomes : Name
开发者_如何学编程after the property RightToLeft = Yes
is made.
But I want to right aligned the label as Name :
Is there anyway to do so? Please help... I am using Visual Studio 2010
You should use the TextAlign property, not the RightToLeft property. The latter is used for localization to right-to-left languages.
精彩评论