then add richtextbox2.lines to richtextbox3
----------------------------------
my code:
For Each RTB1 As String In RichTextBox1.Lines
For Each RTB2 As String In RichTextBox1.Lines
If RTB1.Contains(RTB2) Then
Else
RichTextBox4.AppendText(Environment.NewLine & RTB2)
End If
Next
Next
-----------------------------------
error:
Cannot access a disposed object.
Object name: 'RichTextBox'.
----------------------------------
my code:
For Each RTB1 As String In RichTextBox1.Lines
For Each RTB2 As String In RichTextBox1.Lines
If RTB1.Contains(RTB2) Then
Else
RichTextBox4.AppendText(Environment.NewLine & RTB2)
End If
Next
Next
-----------------------------------
error:
Cannot access a disposed object.
Object name: 'RichTextBox'.