我需要将"richtextbox4行“拆分成richtextbox1行号1
richtextbox2 take第2行
和richtextbox3取第3行
因此,所有3个richtextbox4都从"richtextbox4行“中取出一行。
发布于 2013-04-01 21:30:49
试试这段代码
For i As Integer = 0 To RichTextBox1.Lines.Count
If i = 0 Then
RichTextBox2.Text = RichTextBox1.Lines(i)
ElseIf i = 1 Then
RichTextBox3.Text = RichTextBox1.Lines(i)
ElseIf i = 2 Then
RichTextBox4.Text = RichTextBox1.Lines(i)
End If
Nexthttps://stackoverflow.com/questions/15743853
复制相似问题