Vb.net richtextbox删除指定行
我想从richtextbox中删除与我的.txt文件具有相似单词的指定单词,然后将其打印到另一个richtextbox文件中。这是我的源代码Vb.net richtextbox删除指定行,vb.net,richtextbox,Vb.net,Richtextbox,我想从richtextbox中删除与我的.txt文件具有相似单词的指定单词,然后将其打印到另一个richtextbox文件中。这是我的源代码 Using line As New StreamReader("stoplist.txt") While Not line.EndOfStream filter.Add(line.ReadLine) End While End Using For Each words As Stri
Using line As New StreamReader("stoplist.txt")
While Not line.EndOfStream
filter.Add(line.ReadLine)
End While
End Using
For Each words As String In filter
If words.Contains(filter.ToString) Then
filter.Remove(words)
Exit For
End If
Next
'How I print the result into richtextbox
我不知道如何将它再次打印到另一个richtextbox中。可能我的源代码也需要编辑吗?请不要在标题前加上“vb.net”之类的字头。这就是我们在上使用标记的原因。