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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Highlighting keywords on a form?

Status
Not open for further replies.

CharlesCVA

IS-IT--Management
Oct 20, 2005
19
US
HI!

My Name is charlie and i do database work for SAIC. :)

As of right now i have a textbox that is displaying data. it doesnt need to be a textbox, but that is what i am using.

I would like to have someones input on how i go about HIGHLIGHTING a variable keyword in this "text area" whether it be a textbox or LARGE Label.

At any point there could be very large amounts of text and i would like to possibly use a textbox because of scrollbars. Any Help would be appreciated. Thanks

-Charlie

- Why didnt we just start out keeping things simple?
 
well i have found out that i should use an RTF control instead of regular textbox. however i have also discovered that RTF controls are not available in the professional version of office 2003. :( any advice?

- Why didnt we just start out keeping things simple?
 
Without a rich text box, you better think of another type of display. Maybe doable with some heavy coding of the windows API, but I doubt it. Unfortunately, this is a piece of cake with a RTB
 
Yea i know. i am currently trying to figure out how to output my textbox to a .html file. then ill use a replace string function and replace my keywords with "<B>" + keyword + "</B>. then i will navigate to that textfile with a webbrowser. =) any tips on getting this textbox to output to textfile? and then deleteing the textfile after the page loads? this is pretty security concious work and i dont want any textfiles laying around.

- Why didnt we just start out keeping things simple?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top