ok.. more strange stuff..
Trying to do some bit wise OR'ing and place it into the options section of the .find function of a richtextbox control
This works:
RValue = CodeEditorRTF.Find(txtFindCode.Text, SelStart, RichTextBoxFinds.None Or RichTextBoxFinds.Reverse)
This doesn't: and pops up some undecpherable error for me...""Overload resolution failed......""
If CheckBoxFindMatchCase.Checked Then
SearchOptions = SearchOptions Or RichTextBoxFinds.MatchCase
End If
RValue = CodeEditorRTF.Find(txtFindCode.Text, SelStart, SearchOptions)
SearchOptions is DIM'd as Integer..
Why won't this method let me use the code in the SearchOptions version
stubs

Richtextbox.find... options
muntyanu
Hi,
FYI: If you think that your post is answered then click on "Mark as Answer" to mark it as answered.
Thank you,
Bhanu.
saktya
Hi stubs,
In the second case, you're calling RichTextBox.Find with the following parameters: String, Int, Int.
RichTextBox.Find has 2 overloads like this:
- Find(Char(), Integer, Integer)
- Find(String, Integer, RichTextBoxFinds).
Therefore the compiler did not know which overload to use to narrow your call, hence the error message above.
You can Dim SearchOptions As RichTextBoxFinds and this will work.
Best regards,