Click here to Skip to main content
15,914,820 members
Home / Discussions / C#
   

C#

 
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 
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 
Also, avoid creating new objects (pens, brushes, fonts, ...) in your Paint handler.
What I typically do is have some class members to hold those, inside the Paint handler null-check them
and create new objects if necessary, and everywhere else set them back to null when they will have
to be replaced.

And lastly, whatever disposable object you create, don't forget to call Dispose() on it when
you no longer need it.

The net result is painting does not cause unnecessary GC activity.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

Fixturized forever. Confused | :confused:


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 
AnswerRe: cross-thread operation not valid? Pin
Patrick Etc.3-Nov-08 16:52
Patrick Etc.3-Nov-08 16:52 
AnswerRe: cross-thread operation not valid? Pin
Giorgi Dalakishvili3-Nov-08 19:28
mentorGiorgi Dalakishvili3-Nov-08 19:28 
Questionconvert to double Pin
dec823-Nov-08 16:21
dec823-Nov-08 16:21 

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.