Click here to Skip to main content
15,895,142 members
Home / Discussions / C#
   

C#

 
QuestionGridview with 2 lines Pin
dabuskol22-Jul-07 1:04
dabuskol22-Jul-07 1:04 
AnswerRe: Gridview with 2 lines Pin
Arun.Immanuel22-Jul-07 1:28
Arun.Immanuel22-Jul-07 1:28 
GeneralRe: Gridview with 2 lines Pin
dabuskol22-Jul-07 1:33
dabuskol22-Jul-07 1:33 
GeneralRe: Gridview with 2 lines Pin
Arun.Immanuel22-Jul-07 2:21
Arun.Immanuel22-Jul-07 2:21 
Questionassembly: AssemblyKeyFile not supported in VS2005? Pin
George_George22-Jul-07 0:50
George_George22-Jul-07 0:50 
QuestionRedraw in a pictureBox Pin
eskape1922-Jul-07 0:42
eskape1922-Jul-07 0:42 
AnswerRe: Redraw in a pictureBox Pin
Luc Pattyn22-Jul-07 1:33
sitebuilderLuc Pattyn22-Jul-07 1:33 
QuestionDynamic textcolor change in RichTextBox in visual C# Pin
Blekk21-Jul-07 23:57
Blekk21-Jul-07 23:57 
Hi,

I am wanting to create an effect like that in FrontPage and DreamWeaver (and many other code IDEs).

For example, I am using DreamWeaver and I type this automatically turns blue to show it is code. This is what I would like to do.

I already have something going, but it only does it when the file is first loaded, not while it is being edited, so I need to put it in a loop or something like that, also another problem was that all subsequent text after the last string () was also blue.

Here are my two functions so far, CheckAllText() runs in the Load function of the Form.

public void TextColor(string text)
{
int iReturnValue = richTextBoxZedit.Find(text);
if (iReturnValue >= 0)
{
richTextBoxZedit.SelectionColor = Color.Blue;
}
}

public void CheckAllText()
{
string[] HTMLArray = new string[4] { "", "", "", "" };

for (int i = 0; i < HTMLArray.Length; i++)
{
TextColor(HTMLArray[i]);
}
}


Any suggestions?

Thanks in advance.
AnswerRe: Dynamic textcolor change in RichTextBox in visual C# Pin
Luc Pattyn22-Jul-07 0:47
sitebuilderLuc Pattyn22-Jul-07 0:47 
GeneralRe: Dynamic textcolor change in RichTextBox in visual C# Pin
Blekk22-Jul-07 11:52
Blekk22-Jul-07 11:52 
GeneralRe: Dynamic textcolor change in RichTextBox in visual C# Pin
Luc Pattyn22-Jul-07 12:38
sitebuilderLuc Pattyn22-Jul-07 12:38 
GeneralRe: Dynamic textcolor change in RichTextBox in visual C# Pin
Blekk23-Jul-07 3:34
Blekk23-Jul-07 3:34 
GeneralRe: Dynamic textcolor change in RichTextBox in visual C# Pin
Luc Pattyn23-Jul-07 3:57
sitebuilderLuc Pattyn23-Jul-07 3:57 
QuestionCannot Load ResXFileCodeGenerator and SettingsSingleFileGenerator Pin
zoroyster21-Jul-07 23:49
zoroyster21-Jul-07 23:49 
QuestionMove the form without caption [modified] Pin
Maddie from Dartford21-Jul-07 23:15
Maddie from Dartford21-Jul-07 23:15 
AnswerRe: Move the form without caption Pin
mav.northwind22-Jul-07 5:09
mav.northwind22-Jul-07 5:09 
GeneralRe: Move the form without caption Pin
Maddie from Dartford22-Jul-07 17:54
Maddie from Dartford22-Jul-07 17:54 
GeneralRe: Move the form without caption Pin
mav.northwind22-Jul-07 19:11
mav.northwind22-Jul-07 19:11 
QuestionHow to use Dictionary? Pin
Nothend21-Jul-07 23:04
Nothend21-Jul-07 23:04 
AnswerRe: How to use Dictionary? Pin
mav.northwind21-Jul-07 23:13
mav.northwind21-Jul-07 23:13 
GeneralRe: How to use Dictionary? Pin
Nothend21-Jul-07 23:21
Nothend21-Jul-07 23:21 
GeneralRe: How to use Dictionary? Pin
Larantz22-Jul-07 0:11
Larantz22-Jul-07 0:11 
GeneralRe: How to use Dictionary? Pin
Nothend22-Jul-07 0:21
Nothend22-Jul-07 0:21 
GeneralRe: How to use Dictionary? Pin
Nothend22-Jul-07 0:24
Nothend22-Jul-07 0:24 
QuestionPersistentn publish-subscribe in wcf Pin
xshift21-Jul-07 22:10
xshift21-Jul-07 22:10 

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.