Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Highlighting in RichEdit

Status
Not open for further replies.

shilpashetty27

Technical User
Apr 12, 2007
32
CA
Hi all,

I've been trying to achieve the following, with no luck whatsoever.

I have a RichEdit control, a button and an edit control on my form. After i type something in the edit control and hit the button, I want that typed data to show up on the RichEdit control as highlighted data.

Any idea how i can go about doing this? Your help is appreciated.

Thanks in advance!
Shilpa
 
Have you tried SetFocus or do you mean that another component will have focus but you want the text to be highlighted?



James P. Cottingham
-----------------------------------------
I'm number 1,229!
I'm number 1,229!
 
To be a little more specific, after I press a button, I want the typed data to show up on the rich edit with the data being highlighted in red.

The rich edit will have other lines of data in it, so when this particular typed data shows up on it, I want it to be highlighted to be able to distinguish it from the other lines of data.


cheers,
Shilpa
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top