Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/vb.net/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Vb.net richtextbox删除指定行_Vb.net_Richtextbox - Fatal编程技术网

Vb.net 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

我想从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 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”之类的字头。这就是我们在上使用标记的原因。