Click here to Skip to main content
16,007,885 members
Home / Discussions / C#
   

C#

 
GeneralRe: string to html Pin
stijnbe4-Feb-06 21:50
stijnbe4-Feb-06 21:50 
QuestionExcel, how to add workbook? Pin
tray_gator3-Feb-06 23:26
tray_gator3-Feb-06 23:26 
QuestionHow to create registry object like Skype Pin
Sasuko3-Feb-06 22:45
Sasuko3-Feb-06 22:45 
GeneralRe: How to create registry object like Skype Pin
Guffa3-Feb-06 22:53
Guffa3-Feb-06 22:53 
QuestionPrinting question Pin
Beringer3-Feb-06 19:04
Beringer3-Feb-06 19:04 
QuestionCreate Thumbnail from WMV ? Pin
cromag3-Feb-06 15:26
cromag3-Feb-06 15:26 
AnswerRe: Create Thumbnail from WMV ? Pin
Sean894-Feb-06 8:59
Sean894-Feb-06 8:59 
QuestionSyntax-Hilighting Pin
DigitalKing3-Feb-06 15:24
DigitalKing3-Feb-06 15:24 
Hi,

I'm overriding the RichTextBox class to add syntax-highlighting functionality (HTML, XML, PHP, C).

So far, I've been very successful. I have a working version with just a few bugs.

The only problem that I've run in to is that when the user opens a file, the process is very
slow. This is because to change the color of the text, I am using the RichTextBox's Select method
to select a range of text, and then setting the field SelectionColor. If I open a file with many lines,
this process takes a few seconds to complete. I notice that when I open a similar file in Visual Studio,
the syntax-highlighting is instantaneous.

So, I was wondering if there's a faster way to change the color of many portions of text in the RichTextBox (without selecting it first).
Is this possible using Windows Messages or Win32 Functions?

Thanks in advance.
DigitalKing
AnswerRe: Syntax-Hilighting Pin
Dave Kreskowiak3-Feb-06 16:03
mveDave Kreskowiak3-Feb-06 16:03 
QuestionWSE 3.0: How to add a X509TokenProvider for SystemAccount Pin
Eugenio Lysei Junior3-Feb-06 13:38
Eugenio Lysei Junior3-Feb-06 13:38 
QuestionProxy Problem Please help Pin
snouto3-Feb-06 12:59
snouto3-Feb-06 12:59 
AnswerRe: Proxy Problem Please help Pin
Dave Kreskowiak3-Feb-06 13:43
mveDave Kreskowiak3-Feb-06 13:43 
QuestionThread Timing Issues (Debug/Release) Pin
Office Lineman3-Feb-06 12:51
Office Lineman3-Feb-06 12:51 
AnswerRe: Thread Timing Issues (Debug/Release) Pin
Guffa3-Feb-06 13:16
Guffa3-Feb-06 13:16 
AnswerRe: Thread Timing Issues (Debug/Release) Pin
Dave Kreskowiak3-Feb-06 13:18
mveDave Kreskowiak3-Feb-06 13:18 
GeneralRe: Thread Timing Issues (Debug/Release) Pin
Office Lineman3-Feb-06 14:01
Office Lineman3-Feb-06 14:01 
Joke(OT) Re: Thread Timing Issues (Debug/Release) Pin
mav.northwind3-Feb-06 21:43
mav.northwind3-Feb-06 21:43 
GeneralRe: (OT) Re: Thread Timing Issues (Debug/Release) Pin
Dave Kreskowiak4-Feb-06 7:06
mveDave Kreskowiak4-Feb-06 7:06 
QuestionShowing a Form quickly Pin
ranzask3-Feb-06 12:20
ranzask3-Feb-06 12:20 
AnswerRe: Showing a Form quickly Pin
Dave Kreskowiak3-Feb-06 13:35
mveDave Kreskowiak3-Feb-06 13:35 
GeneralRe: Showing a Form quickly Pin
ranzask3-Feb-06 14:19
ranzask3-Feb-06 14:19 
GeneralRe: Showing a Form quickly Pin
Dave Kreskowiak3-Feb-06 15:49
mveDave Kreskowiak3-Feb-06 15:49 
Question.xsd Pin
fmardani3-Feb-06 12:02
fmardani3-Feb-06 12:02 
Question.xsd files Pin
fmardani3-Feb-06 10:36
fmardani3-Feb-06 10:36 
QuestionFun with setting subproperties through reflection Pin
tantiboh3-Feb-06 10:08
tantiboh3-Feb-06 10:08 

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.