Here is my current remove code but that only removes pre-set strings -
Do
RichTextBox1.Text = R.Replace(RichTextBox1.Text, "")
line_input = text_input.ReadLine
If line_input <> Nothing Then
words1(counter) = line_input
End If
counter = counter + 1
Loop Until line_input = Nothing
number_of_words = counter - 1
For counter = 0 To number_of_words - 1
Do
search1 = InStr(RichTextBox1.Text, words1(counter))
If search1 <> 0 Then
If search1 <> Nothing Then
If search1 Then
RichTextBox1.Focus()
RichTextBox1.Selectionstart = search1 - 1
RichTextBox1.SelectionLength = Len(words1(counter))
Me.RichTextBox1.SelectedText = ""
End If
End If
End If
Loop Until search1 = Nothing Or search1 = 0
Next
I have experimented with removing enter (next line) using their ascii values but i couldnt get anywhere.
Im not looking for someone to make my code for me but i know what i am doing and i have friends who are also good at vb.net i just need to know the function type and how it works and i can do the rest.

New Topic/Question
Reply



MultiQuote






|