标签从右向左增长 [英] Label grow from right to left

查看:86
本文介绍了标签从右向左增长的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在表单的右侧有一个标签.此标签会加载动态文本.

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆