Click here to Skip to main content
15,902,002 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
Generalrendering multiple BufferedGraphics objects to the display Pin
cristian.fatu2-Apr-08 23:49
cristian.fatu2-Apr-08 23:49 
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 
Hi,

I need to change the colour of particular word in a file.
So that i store that word in array then find the length of the file.
I Put it in for loop. if the word is found then it will change the color.

Now my problem is if the word is occur more than one time the color not changed.
can you tell me what is the mistake ?

I used Mc++, my code is as follows.

array<String^>^ keyword = gcnew array<String^>{"int", "void", "float","double","longint"};
int len = keyword->Length;
int Lines = this->srcTextBox->Lines->Length;
for(int i=0;i<Lines;i++)
{
for(int j=0;j<len;j++)
{
String ^searchStr = this->srcTextBox->Lines[i];
String ^key = keyword[j];
bool found;
found = searchStr->Contains(key);
if(found)
{
if(this->srcTextBox->Find(key,RichTextBoxFinds::MatchCase))
{
this->srcTextBox->SelectionColor = Color::Blue;
}
}
}
}

Thanks
GeneralRe: word by word searching Pin
Mark Salsbery2-Apr-08 20:52
Mark Salsbery2-Apr-08 20:52 
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 

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.