有什么错我的代码如下:如何从文本框中删除第一行文本?
Select Case chkSTC.Checked
Case True
txtCargoDescription.Text = Resources._Global.ContrSTC & vbNewLine & txtCargoDescription.Text
Case False
Dim b As String() = Split(txtCargoDescription.Text, vbNewLine)
txtCargoDescription.Text = String.Join(vbNewLine, b, 1, b.Length - 1)
End Select
正如我参考其他参考,
Dim b As String() = Split(txtCargoDescription.Text, vbNewLine)
txtCargoDescription.Text = String.Join(vbNewLine, b, 1, b.Length - 1)
显示,可以删除文本框多行的第一行,但它删除文本框内的所有文本。请帮我解决这个问题。
谢谢你在先进:)
其无法正常工作,还删除里面的文本框 –
所有文字我已经写代码(Asp.net C#.NET)检查了它和它的作品100% –
实际情况是,如果用户选中该复选框,然后在“集装箱STC: - “将出现,但如果用户未选中,则应删除”Cotanainer STC: - “。 –