Find and replace for richtextbox functionality in vb.net 2.0

Hi,
Can anybody give an example of 'Find, replace and replaceall functionality for richtextbox which is case INSENSITIVE.

Cheers
RIASAsked:
Who is Participating?
 
Alpha AuConnect With a Mentor Commented:
how about this?


xStart = InStr(0, Me.SQLBox.Text.ToLower(), "abc", CompareMethod.Text)

Open in new window

0
 
Alpha AuCommented:
the following code change all "Abc" , "ABc" etc in RichTextBox1 to "cde"


 Me.RichTextBox1.Text = Me.RichTextBox1.Text.ToLower.Replace("abc", "cde")

Open in new window

0
 
Alpha AuCommented:
the following code return true if richtextbox1 contains "abc" or "Abc" etc




me.RichTextBox1.Text.ToLower.Contains("abc")

Open in new window

0
 
RIASAuthor Commented:
Cheers for the reply but the code I am using is
  'find the start of the next found item in the sql file
                xStart = SQLBox.Find(xFind, SearchFrom, Windows.Forms.RichTextBoxFinds.WholeWord)

S othe suggestions aren't working :<
         
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.