开发者

How to make label text right aligned in visual studio?

开发者 https://www.devze.com 2023-02-18 12:18 出处:网络
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:

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消