我使用的是ToolTip,当我写的文字会在右边显示太长时,所以单击Enter继续将文字写在新行中,这意味着我在运行程序时会在其中换一行,这只是让我更容易看到文字。
toolTip1.SetToolTip(this.checkBox2, "Create automatic animated gif after rain event
this text is a new line");
而是这样做:
toolTip1.SetToolTip(this.checkBox2, "Create automatic animated gif after rain event this text is a new line");
我只是想看看我在写些什么更简单。
例如我的意思是:
toolTip1.SetToolTip(this.checkBox2, "Create automatic animated gif after rain event
this is text to keep writing
and this is also the same line one single line to show");
因此,当我运行该程序时,我将看到所有文本长行显示,但是在Visual Studio中,我希望以行显示文本。
进行时:
toolTip1.SetToolTip(this.checkBox2, "Create automatic animated gif after rain event
text to add");
我收到9个错误,就像零件一样:要添加的文字不在“”中
如果我理解正确,那么您想这样做:
toolTip1.SetToolTip(this.checkBox2, "Create automatic animated gif " +
"after rain event " +
"text to add");
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句