【发布时间】:2019-06-06 00:45:22
【问题描述】:
我的代码需要帮助。
我有一个 TextBox,其中包含如下文本行:
"hello my friends, how r u?","today is good"
"I'm fine","and you"
"have a nice day","thanks"
我想使用SubString()(或其他方法,没关系)删除此 TextBox 项的子字符串。
当我编译我的代码时,我想在我的 TextBox(相同的 TextBox,不是新的)中看到这个输出。
hello my friends, how r u?
I'm fine
have a nice day
【问题讨论】:
-
C# 标签非常有效。您的问题标题中不需要 C#(有关更多信息,请参阅标记帮助)。请您包含您已有的代码。
标签: c# winforms textbox substring