Click here to Skip to main content
15,906,569 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionIssue with threading behaviour ... I think Pin
Jack Vanderhorst26-Mar-10 4:54
Jack Vanderhorst26-Mar-10 4:54 
AnswerRe: Issue with threading behaviour ... I think Pin
Luc Pattyn26-Mar-10 5:30
sitebuilderLuc Pattyn26-Mar-10 5:30 
GeneralRe: Issue with threading behaviour ... I think Pin
Jack Vanderhorst27-Mar-10 16:16
Jack Vanderhorst27-Mar-10 16:16 
AnswerRe: Issue with threading behaviour ... I think Pin
Luc Pattyn27-Mar-10 16:24
sitebuilderLuc Pattyn27-Mar-10 16:24 
QuestionO/R -Mapping with .netTiers and Audittrail with Entity Framework?? Pin
andreas.schaerer26-Mar-10 4:23
andreas.schaerer26-Mar-10 4:23 
QuestionHow to read *.dmp file with visual C# .net to search strings in it Pin
harji1725-Mar-10 13:45
harji1725-Mar-10 13:45 
AnswerRepost Pin
Not Active25-Mar-10 14:35
mentorNot Active25-Mar-10 14:35 
QuestionRichTextBox syntax color - find all lines or line by line Pin
norrisMiou25-Mar-10 3:19
norrisMiou25-Mar-10 3:19 
(sorry for my english Smile | :) )
I currently work on a code editor with syntaxtic coloring in VB.Net. As much examples found on the Net, I left on the solution "selection the key words found and coloring selection".
As i know it's hard to make something clean and fast (I'm a beginner), I Override "onTextChanged" with a boolean flag "CanPaint", and override "WndProc" for checking if it's "Paint message" for redraw my richTextBox only when it is necessary.

For speeding, I check for keyword only on the current line.

All works fine, except when a keyword is separate on several lines. AS I want coloring XML and HTML tags, the system must also function on several lines, and it is there that I do not know how to consider the problem.

I can easilly chek for keywords on all lines of the richTextBox, but if there's 500 or 1000 lines ... VB is likely to pain I think.

I thought of carrying out in background task all X seconds a “srcipt inspector” on all the text while keeping my coloring by lines… but I know nothing with the thread yet there.

I do not see how to consider the problem. I am taking of all councils Big Grin | :-D Thanks
AnswerRe: RichTextBox syntax color - find all lines or line by line Pin
Luc Pattyn25-Mar-10 4:37
sitebuilderLuc Pattyn25-Mar-10 4:37 
NewsGoldman Sachs Vice Presidents Speak Java at Great Indian Developer Summit 2010 Pin
Rajesh557525-Mar-10 1:21
Rajesh557525-Mar-10 1:21 
QuestionMessage Removed Pin
24-Mar-10 19:52
sindhumahe24-Mar-10 19:52 
AnswerRe: building a object file lib Pin
Richard MacCutchan24-Mar-10 22:42
mveRichard MacCutchan24-Mar-10 22:42 
GeneralRe: building a object file lib Pin
sindhumahe24-Mar-10 22:52
sindhumahe24-Mar-10 22:52 
GeneralRe: building a object file lib [modified] Pin
Richard MacCutchan25-Mar-10 2:08
mveRichard MacCutchan25-Mar-10 2:08 
GeneralRe: building a object file lib Pin
Luc Pattyn25-Mar-10 3:04
sitebuilderLuc Pattyn25-Mar-10 3:04 
GeneralRe: building a object file lib Pin
Richard MacCutchan25-Mar-10 4:09
mveRichard MacCutchan25-Mar-10 4:09 
GeneralRe: building a object file lib Pin
Luc Pattyn25-Mar-10 4:24
sitebuilderLuc Pattyn25-Mar-10 4:24 
QuestionDiffrence between tier and layer architecture ? Pin
Mahendran.chandramohan24-Mar-10 1:47
Mahendran.chandramohan24-Mar-10 1:47 
AnswerRe: Diffrence between tier and layer architecture ? Pin
Eddy Vluggen24-Mar-10 1:58
professionalEddy Vluggen24-Mar-10 1:58 
AnswerRe: Diffrence between tier and layer architecture ? Pin
Abhinav S24-Mar-10 8:18
Abhinav S24-Mar-10 8:18 
AnswerRe: Difference between tier and layer architecture ? Pin
The Man from U.N.C.L.E.25-Mar-10 1:06
The Man from U.N.C.L.E.25-Mar-10 1:06 
QuestionIs Invalidate() take same time to execute when application is minimized and maximized? Pin
rsumanan23-Mar-10 20:47
rsumanan23-Mar-10 20:47 
AnswerRe: Is Invalidate() take same time to execute when application is minimized and maximized? Pin
The Man from U.N.C.L.E.23-Mar-10 23:43
The Man from U.N.C.L.E.23-Mar-10 23:43 
AnswerRe: Is Invalidate() take same time to execute when application is minimized and maximized? Pin
Dave Kreskowiak24-Mar-10 13:03
mveDave Kreskowiak24-Mar-10 13:03 
QuestionStrange behavoir on KeyDown in CompactFramework Pin
J. Holzer23-Mar-10 4:59
J. Holzer23-Mar-10 4:59 

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.