Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Ok, subject line couldnt put all what I am needing or trying to do...

 

The Find method with the RTB is to slow...... What would be a faster way of searching for a Phrase (which is the string entered in TextBox by user) then

once the string is located I would like it to change its color to Red

Then I would like the line the string is in to come to the top of the RTB

 

NOTE: I dont want to clear the RTB just would like the scroll position to move so that the line containing the search string is located at the top of the RTB or near the top.

 

Hope I dont confuse things by adding this but just another note should there be 2 or more occurances of the string entered that the first occurance be what is placed at the top then with a 2nd button click perhaps in a Find Next button it would move to the next occurance and so on

 

vbMarkO

Visual Basic 2008 Express Edition!
Posted
I only know of the instr function or the .SubString method of the string type. Unless you write your own, which would probably not be much faster anyway.

~Nate�

___________________________________________

Please use the [vb]/[cs] tags on posted code.

Please post solutions you find somewhere else.

Follow me on Twitter here.

Posted

hmmm Marble regular expressions might be worth a try

 

but then, what are regular expresions? :)

 

they sound sort of scarry!!

 

vbMarkO

Visual Basic 2008 Express Edition!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...