Click here to Skip to main content
15,900,725 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Crystal Report "Logon Failed. Please Try Again." Pin
Paul Conrad28-Nov-07 15:09
professionalPaul Conrad28-Nov-07 15:09 
GeneralRe: Crystal Report "Logon Failed. Please Try Again." Pin
Reveille28-Nov-07 15:33
Reveille28-Nov-07 15:33 
QuestionOpening and Closing Connections Pin
AAGTHosting28-Nov-07 11:52
AAGTHosting28-Nov-07 11:52 
AnswerRe: Opening and Closing Connections Pin
Naji El Kotob28-Nov-07 12:14
Naji El Kotob28-Nov-07 12:14 
QuestionUsing TableAdapters Pin
AAGTHosting28-Nov-07 11:10
AAGTHosting28-Nov-07 11:10 
AnswerRe: Using TableAdapters Pin
AAGTHosting28-Nov-07 11:53
AAGTHosting28-Nov-07 11:53 
QuestionWebBrowser & HTML Tables Problem in VB.NET Pin
conorod28-Nov-07 11:07
conorod28-Nov-07 11:07 
QuestionColorize text between two words Pin
The Mighty Atom28-Nov-07 9:48
The Mighty Atom28-Nov-07 9:48 
Hi there...

I got a bit of a problem with coloring text between two given words. Here's an example:

I have a RichTextBox with the following text:
This is a RichTextBox with some random jibberish bla bla bla i just need to make it long enough.

Next, i have two other textboxes with the following text in the first textbox:
with
and in the second textbox:
jibberish

Below that, i have two more textbox with the following text in the first:
just
and in the second textbox:
long

Now when your press a button, i want the text between those words colored red, so that result will be like this:

Click here to see the required result

As you can see, the text between the given words are colored red.
I need this so i can colorize error messages in my app. My app handles somekind of compilation process and at the end it shows the compile log of the compilation process to the user. If the log has errors, i want to make the error messages red, so that it is easy to find.

Now there are many different kinds of error messages that can pop up during this compile process, so i need to find a way to handle all those error messages (making them red) with as less code as possible. Perhaps an Array will do the job?

Can anyone help me with these issues? I hope you guys understand what i need. Smile | :)



http://www.themightyatom.nl

AnswerRe: Colorize text between two words Pin
cstrader23228-Nov-07 17:34
cstrader23228-Nov-07 17:34 
GeneralRe: Colorize text between two words Pin
The Mighty Atom29-Nov-07 10:10
The Mighty Atom29-Nov-07 10:10 
GeneralRe: Colorize text between two words Pin
PeterBiddlecombe29-Nov-07 22:09
PeterBiddlecombe29-Nov-07 22:09 
GeneralRe: Colorize text between two words Pin
The Mighty Atom30-Nov-07 2:08
The Mighty Atom30-Nov-07 2:08 
GeneralRe: Colorize text between two words Pin
PeterBiddlecombe30-Nov-07 4:55
PeterBiddlecombe30-Nov-07 4:55 
GeneralRe: Colorize text between two words Pin
The Mighty Atom30-Nov-07 5:33
The Mighty Atom30-Nov-07 5:33 
QuestionWorks but any known memory leak? Pin
nlarson1128-Nov-07 9:21
nlarson1128-Nov-07 9:21 
AnswerRe: Works but any known memory leak? Pin
Luc Pattyn28-Nov-07 9:28
sitebuilderLuc Pattyn28-Nov-07 9:28 
GeneralRe: Works but any known memory leak? Pin
nlarson1128-Nov-07 9:30
nlarson1128-Nov-07 9:30 
GeneralRe: Works but any known memory leak? Pin
Luc Pattyn28-Nov-07 9:55
sitebuilderLuc Pattyn28-Nov-07 9:55 
AnswerRe: Works but any known memory leak? Pin
Christian Graus28-Nov-07 9:30
protectorChristian Graus28-Nov-07 9:30 
GeneralRe: Works but any known memory leak? Pin
nlarson1128-Nov-07 9:35
nlarson1128-Nov-07 9:35 
GeneralRe: Works but any known memory leak? Pin
Luc Pattyn28-Nov-07 9:43
sitebuilderLuc Pattyn28-Nov-07 9:43 
AnswerRe: Works but any known memory leak? Pin
sgorozco28-Nov-07 10:30
sgorozco28-Nov-07 10:30 
GeneralRe: Works but any known memory leak? Pin
nlarson1128-Nov-07 10:41
nlarson1128-Nov-07 10:41 
QuestionCommandbutton blink in VB 2005 Pin
DCAUB28-Nov-07 8:56
DCAUB28-Nov-07 8:56 
AnswerRe: Commandbutton blink in VB 2005 Pin
nlarson1128-Nov-07 9:05
nlarson1128-Nov-07 9:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.