Find Next

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I added a form with a textbox, and a button. It currenly searches a rich text box from fmMain. But it only locates the first instance, how do I find next

My Code

Private Sub btnFind_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnFind.Clic

'Searches the current document

Dim vFind As String = tbFind.Tex
fmmain.rtb.Find(vFind
End Su
 
Bill English said:
I added a form with a textbox, and a button. It currenly searches a
rich text box from fmMain. But it only locates the first instance,
how do I find next?

My Code:

Private Sub btnFind_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles btnFind.Click
'
'Searches the current document.
'
Dim vFind As String = tbFind.Text
fmmain.rtb.Find(vFind)
End Sub

The Find function is overloaded.


--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html
 
Back
Top