Click here to Skip to main content
16,007,610 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: rendering multiple BufferedGraphics objects to the display Pin
Mark Salsbery3-Apr-08 5:55
Mark Salsbery3-Apr-08 5:55 
GeneralRe: rendering multiple BufferedGraphics objects to the display Pin
cristian.fatu3-Apr-08 22:39
cristian.fatu3-Apr-08 22:39 
GeneralRe: rendering multiple BufferedGraphics objects to the display Pin
Mark Salsbery4-Apr-08 6:08
Mark Salsbery4-Apr-08 6:08 
GeneralRe: rendering multiple BufferedGraphics objects to the display Pin
cristian.fatu6-Apr-08 22:52
cristian.fatu6-Apr-08 22:52 
Generalrichtextbox Pin
rose1962-Apr-08 19:52
rose1962-Apr-08 19:52 
GeneralRe: richtextbox Pin
Mark Salsbery2-Apr-08 20:33
Mark Salsbery2-Apr-08 20:33 
Generalword by word searching Pin
rose1962-Apr-08 18:38
rose1962-Apr-08 18:38 
GeneralRe: word by word searching Pin
Mark Salsbery2-Apr-08 20:52
Mark Salsbery2-Apr-08 20:52 
rose196 wrote:
if(this->srcTextBox->Find(key,RichTextBoxFinds::MatchCase))


You should be checking if Find() returns >= 0

I'm not a big forms user, but I'm pretty sure you need to select the text if you want to see
a color change.

Maybe something like this...
int FoundTextIndex = this->srcTextBox->Find(key,RichTextBoxFinds::MatchCase);
if(FoundTextIndex >= 0)
{
   this->srcTextBox->Select(FoundTextIndex, key->Length);
   this->srcTextBox->SelectionColor = Color::Blue;
}
Mark




Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: word by word searching [modified] Pin
rose1962-Apr-08 23:10
rose1962-Apr-08 23:10 
GeneralRe: word by word searching Pin
Mark Salsbery3-Apr-08 5:41
Mark Salsbery3-Apr-08 5:41 
GeneralRe: word by word searching Pin
rose1963-Apr-08 23:48
rose1963-Apr-08 23:48 
GeneralRe: word by word searching Pin
Mark Salsbery4-Apr-08 6:15
Mark Salsbery4-Apr-08 6:15 
GeneralRe: word by word searching Pin
rose1968-Apr-08 18:21
rose1968-Apr-08 18:21 
QuestionDispatching for events? Pin
Don Rolando1-Apr-08 1:50
Don Rolando1-Apr-08 1:50 
AnswerRe: Dispatching for events? Pin
led mike1-Apr-08 4:37
led mike1-Apr-08 4:37 
GeneralRe: Dispatching for events? Pin
Don Rolando1-Apr-08 23:28
Don Rolando1-Apr-08 23:28 
GeneralRe: Dispatching for events? Pin
Don Rolando2-Apr-08 3:47
Don Rolando2-Apr-08 3:47 
GeneralRe: Dispatching for events? Pin
led mike2-Apr-08 4:30
led mike2-Apr-08 4:30 
GeneralRe: Dispatching for events? Pin
led mike2-Apr-08 4:33
led mike2-Apr-08 4:33 
GeneralRe: Dispatching for events? Pin
Don Rolando2-Apr-08 5:54
Don Rolando2-Apr-08 5:54 
Generalmigrating from Visual Studio .NET 2003 to Visual Studio 2005 Pin
mayag1-Apr-08 0:53
mayag1-Apr-08 0:53 
GeneralRe: migrating from Visual Studio .NET 2003 to Visual Studio 2005 Pin
led mike1-Apr-08 4:30
led mike1-Apr-08 4:30 
Generalfill and submit a form Pin
joscha31-Mar-08 9:21
joscha31-Mar-08 9:21 
GeneralRe: fill and submit a form Pin
led mike31-Mar-08 9:24
led mike31-Mar-08 9:24 
GeneralRe: fill and submit a form Pin
joscha31-Mar-08 9:33
joscha31-Mar-08 9:33 

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.