【发布时间】:2013-12-19 09:54:36
【问题描述】:
我正在c#中创建一个标签(随机文本,仅作为示例):
Label lblText = new Label();
lblText.Text = "A computer is a general purpose device that can be programmed to carry out a set of arithmetic or logical operations. Since a sequence of operations can be readily changed, the computer can solve more than one kind of problem.";
lblText.Location = new Point(48, 95);
但是当它显示时我只能看到:“A computer is a”
如何显示整个文本?
编辑: AutoSize 工作,但它超出了窗口的边界,有没有像“autoNewLine”这样的东西?将文本保留在窗口内
【问题讨论】:
标签: c# visual-studio-2010 text label