标签从右向左增长 [英] Label grow from right to left
问题描述
我在表单的右侧有一个标签.此标签会加载动态文本.
I have a label on my form which is on the right of the form. This label loads a dynamic text.
有时加载的文本太长,并且文本越过表单的边界,即某些文本超出了表单.
Sometimes the text that it loads is too long and the text crosses the border of the form, that is some of the text is out of the form.
我想使标签从右向左而不是从左向右增长.我该如何实现?
I want to make the label to grow from right to left instead of left to right. How do I achieve this?
推荐答案
我的问题是我的标签在面板中,我所做的任何事情都不起作用.
My problem here was that my label was in a panel, and anything I did wasn't working.
我要做的是将标签放置在TableLayoutPanel
控件中,并将TableLayoutPanel的RightToLeft
属性设置为True
.这成功了.
What I did was to place the label in a TableLayoutPanel
control and set the TableLayoutPanel's RightToLeft
property to True
; this did the trick.
这篇关于标签从右向左增长的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!