Click here to Skip to main content
15,910,009 members
Home / Discussions / C#
   

C#

 
GeneralRe: Accurate timer in C# Pin
PIEBALDconsult4-Nov-08 3:14
mvePIEBALDconsult4-Nov-08 3:14 
GeneralRe: Accurate timer in C# Pin
Luc Pattyn4-Nov-08 3:23
sitebuilderLuc Pattyn4-Nov-08 3:23 
QuestionUse Javascript in Window Application Pin
astrovirgin3-Nov-08 21:25
astrovirgin3-Nov-08 21:25 
AnswerRe: Use Javascript in Window Application Pin
Simon P Stevens3-Nov-08 23:21
Simon P Stevens3-Nov-08 23:21 
QuestionFaster text drawing in C#/.NET with GDI+? Pin
Mr. Accident3-Nov-08 20:38
Mr. Accident3-Nov-08 20:38 
GeneralRe: Faster text drawing in C#/.NET with GDI+? Pin
Guffa3-Nov-08 21:01
Guffa3-Nov-08 21:01 
GeneralRe: Faster text drawing in C#/.NET with GDI+? Pin
Mr. Accident4-Nov-08 12:00
Mr. Accident4-Nov-08 12:00 
AnswerRe: Faster text drawing in C#/.NET with GDI+? Pin
leppie3-Nov-08 21:37
leppie3-Nov-08 21:37 
It is a hard art to master, but text can be drawn very fast under GDI+. There is just too much detail to go into, but you can look at my 'AdvancedTextBox' control in xacc.ide. The source code is on sourceforge.

To summarize:
- Tokenize data
- Optimize tokens by grouping similar ones (store this and 'invalidate' if the 'line/text' changes)
- Paint the groupings

I would also suggest sticking to monospace fonts. Then only 1 call is needed to get the width of a character.

xacc.ide - now with TabsToSpaces support
IronScheme - 1.0 beta 1 - out now!
((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))

QuestionRe: Faster text drawing in C#/.NET with GDI+? Pin
Mr. Accident4-Nov-08 12:11
Mr. Accident4-Nov-08 12:11 
AnswerRe: Faster text drawing in C#/.NET with GDI+? Pin
leppie3-Nov-08 21:38
leppie3-Nov-08 21:38 
GeneralRe: Faster text drawing in C#/.NET with GDI+? Pin
Luc Pattyn4-Nov-08 0:55
sitebuilderLuc Pattyn4-Nov-08 0:55 
Questionhow to launch an application associated to a file of a certain extension? (say .avi) Pin
swjam3-Nov-08 20:03
swjam3-Nov-08 20:03 
AnswerRe: how to launch an application associated to a file of a certain extension? (say .avi) Pin
Giorgi Dalakishvili3-Nov-08 20:24
mentorGiorgi Dalakishvili3-Nov-08 20:24 
QuestionForm in C# Pin
dec823-Nov-08 19:24
dec823-Nov-08 19:24 
AnswerRe: Form in C# Pin
Giorgi Dalakishvili3-Nov-08 19:45
mentorGiorgi Dalakishvili3-Nov-08 19:45 
QuestionRe: Form in C# Pin
nelsonpaixao4-Nov-08 13:26
nelsonpaixao4-Nov-08 13:26 
Questionproblem with binding a datasource to textbox Pin
prasadbuddhika3-Nov-08 19:01
prasadbuddhika3-Nov-08 19:01 
AnswerRe: problem with binding a datasource to textbox Pin
prasadbuddhika3-Nov-08 22:21
prasadbuddhika3-Nov-08 22:21 
QuestionSetup problem Pin
sumit70343-Nov-08 18:22
sumit70343-Nov-08 18:22 
AnswerRe: Setup problem Pin
dan!sh 3-Nov-08 18:38
professional dan!sh 3-Nov-08 18:38 
GeneralRe: Setup problem Pin
sumit70343-Nov-08 18:52
sumit70343-Nov-08 18:52 
GeneralRe: Setup problem Pin
dan!sh 3-Nov-08 19:04
professional dan!sh 3-Nov-08 19:04 
AnswerRe: Setup problem Pin
Fired.Fish.Gmail3-Nov-08 18:43
Fired.Fish.Gmail3-Nov-08 18:43 
GeneralRe: Setup problem Pin
sumit70343-Nov-08 18:54
sumit70343-Nov-08 18:54 
Questioncross-thread operation not valid? Pin
dec823-Nov-08 16:39
dec823-Nov-08 16:39 

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.