473,406 Members | 2,549 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

highlighting multiple words in a RTB

I know that there is an rtb.SelectionStart and rtb.SelectionLength
where you can set the length and beginning index of highlight in an
RTB. but, say I wanted to highlight multiple items at once (for
example, go to MS word.... type in the same word a few times and then
highlight what you typed. then CTL+F for the Find window, and try to
find that word "in selection range". every instance of the word can be
highlighted.) I want to do the same thing.

I know that the pre-defined rtb.Find() method will highlight a word in
a range if it is equivalent to your search key, but can you highlight
all words that match the key at the same time?
Thanks in advance for your help.

Jul 19 '06 #1
1 2309
njuneardave wrote:
I know that there is an rtb.SelectionStart and rtb.SelectionLength
where you can set the length and beginning index of highlight in an
RTB. but, say I wanted to highlight multiple items at once (for
example, go to MS word.... type in the same word a few times and then
highlight what you typed. then CTL+F for the Find window, and try to
find that word "in selection range". every instance of the word can be
highlighted.) I want to do the same thing.

I know that the pre-defined rtb.Find() method will highlight a word in
a range if it is equivalent to your search key, but can you highlight
all words that match the key at the same time?
Thanks in advance for your help.
Hi njuneardave,

I'm afraid that's not possible with the RichTextBox. Microsoft Word doesn't
use a standard windows control.

--
Hope this helps,
Tom Spink

Google first, ask later.
Jul 19 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Adelson Anton | last post by:
Hi all, Ok, this is what I want to do: When you press, say Ctrl+K ( it doesn't matter which event), I want the , say, second word in the document to be highlighted. Anyone has any idea how...
4
by: Bob hotmail.com> | last post by:
Everyone I have been spending weeks looking on the web for a good tutorial on how to use regular expressions and other methods to satisfy my craving for learning how to do FAST c-style syntax...
0
by: Brian Scott | last post by:
I am currently trying to control the syntax highlighting of a richtextbox control whilst the user types. At the moment I have implemented a thread which calls the richTextBox.Invoke on a method...
2
by: ___Newbie___ | last post by:
Hello, I'm looking for a control that can display rows and columns similar to a table but highlight the entire row during selection? Listbox highlights the entire row but doesn't support...
2
by: Stephajn Craig | last post by:
Is there a way that I can have a page do some highlighting based on a set of given keywords? The scenario is that a user does a search for certain keywords, and then the items returned have the...
4
by: Fool | last post by:
Hi, I want a rich textbox that dynamically highlights particular words immediately after they are typed. Just looking for some general tips... I tried putting some code in a sub that handles...
4
by: Patrick Porter | last post by:
Arrrgh! I have tried everything (ok, not EVERYTHING) but i cant get solve the problem of getting syntax highlighting in a rich textbox. in the code below, im attempting to highlight all of the...
7
by: Leif902 | last post by:
After much searching of google, the closest I can find is highlighting search terms... however, this is not what I wanted to do. Does anyone know how to parse through a specific element (lets say...
5
Breezwell
by: Breezwell | last post by:
I have done some searching on this one and I have yet to find any information that sheds light on what I am trying to do. At lease from what I can understand. Basically, I have a main form which...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.