在事情发生后向TextBox添加新行 [英] Adding A New Line To TextBox After Something happens
本文介绍了在事情发生后向TextBox添加新行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我所追求的是每次使用都会在多行文本框中创建一个新行,我已经在线查看,如果你可以帮助我,就无法看到任何喜欢它的东西:)
foreach (htmlelement使用 使用)
{
string u = use.getattribute( H跨度>);
if (u.contains( /使用/))
{
results.appendtext(use.innertext);
}
解决方案
附加Environment.NewLine
然后use.innertext
What i am after is every use create a new line in the multiline textbox i have looked on line and cant see anything love it if you could help me :)
foreach (htmlelement use in uses)
{
string u = use.getattribute("h");
if (u.contains("/use/"))
{
results.appendtext(use.innertext);
}
解决方案
Append aEnvironment.NewLine
and then theuse.innertext
.
这篇关于在事情发生后向TextBox添加新行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文