Click here to Skip to main content
15,919,341 members
Home / Discussions / C#
   

C#

 
AnswerRe: Context Menu Pin
Colin Angus Mackay29-Nov-07 0:22
Colin Angus Mackay29-Nov-07 0:22 
QuestionRe: Context Menu Pin
Programm3r29-Nov-07 0:26
Programm3r29-Nov-07 0:26 
AnswerRe: Context Menu Pin
Programm3r29-Nov-07 0:33
Programm3r29-Nov-07 0:33 
QuestionRegistering ActiveX Components on Windows Server 2003 Pin
Mike.Lewis.TIS28-Nov-07 23:33
Mike.Lewis.TIS28-Nov-07 23:33 
QuestionGet RAID Status ? Pin
m4ko28-Nov-07 23:29
m4ko28-Nov-07 23:29 
AnswerRe: Get RAID Status ? Pin
leppie29-Nov-07 1:55
leppie29-Nov-07 1:55 
QuestionDouble buffering ineffective Pin
Lauulauu28-Nov-07 23:25
Lauulauu28-Nov-07 23:25 
AnswerRe: Double buffering ineffective Pin
Luc Pattyn28-Nov-07 23:38
sitebuilderLuc Pattyn28-Nov-07 23:38 
Hi,

what is the timer's interval?
if anything less than 15, you'd better read my timers article first.

Normally painting occurs in a paint handler, that's either the OnPaint method or some
delegate you add to the Paint event. If you want a timer to cause a repaint, have it
invoke the Invalidate() method of the Control/Form.

If you have many Controls of a Form, double buffering will improve but not solve things.
For gaming (and many other apps) I prefer to have the activitly going on in a Panel,
make that one double buffered, and not have any controls associated with that Panel.
The timer then only has to invalidate that Panel, so no time gets wasted in repainting
the other Controls.

FYI: you can invalidate part of a Control by using some of its overloads.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]


this months tips:
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use PRE tags to preserve formatting when showing multi-line code snippets


AnswerRe: Double buffering ineffective Pin
Russell Jones29-Nov-07 1:01
Russell Jones29-Nov-07 1:01 
AnswerRe: Double buffering ineffective Pin
Ennis Ray Lynch, Jr.29-Nov-07 4:19
Ennis Ray Lynch, Jr.29-Nov-07 4:19 
QuestionC# Crystal Report Export Pin
The Geek28-Nov-07 23:04
The Geek28-Nov-07 23:04 
QuestionAnother UI Issue (ToolStrip) Pin
Jeffrey Walton28-Nov-07 22:38
Jeffrey Walton28-Nov-07 22:38 
AnswerRe: Another UI Issue (ToolStrip) Pin
Pankaj - Joshi28-Nov-07 22:47
Pankaj - Joshi28-Nov-07 22:47 
QuestionA Question about Threading with Socket-Class Pin
MarkPhB28-Nov-07 22:15
MarkPhB28-Nov-07 22:15 
AnswerRe: A Question about Threading with Socket-Class [modified] Pin
m@u28-Nov-07 22:48
m@u28-Nov-07 22:48 
QuestionClass library assembly permissions, best practice Pin
harleydk28-Nov-07 22:11
harleydk28-Nov-07 22:11 
Questionhow to add new row to an exiting data table...? Pin
Pankaj - Joshi28-Nov-07 21:26
Pankaj - Joshi28-Nov-07 21:26 
AnswerRe: how to add new row to an exiting data table...? Pin
Thaer Hamael28-Nov-07 21:33
Thaer Hamael28-Nov-07 21:33 
GeneralRe: how to add new row to an exiting data table...? Pin
Pankaj - Joshi28-Nov-07 22:09
Pankaj - Joshi28-Nov-07 22:09 
GeneralRe: how to add new row to an exiting data table...? Pin
Pankaj - Joshi28-Nov-07 22:12
Pankaj - Joshi28-Nov-07 22:12 
GeneralRe: how to add new row to an exiting data table...? Pin
Mr. Candyman28-Nov-07 23:03
Mr. Candyman28-Nov-07 23:03 
Jokesorry, duplicated message :-P Pin
Mr. Candyman28-Nov-07 23:05
Mr. Candyman28-Nov-07 23:05 
QuestionActive Control Pin
Thaer Hamael28-Nov-07 21:22
Thaer Hamael28-Nov-07 21:22 
QuestionDataGridView Pin
baerten28-Nov-07 21:19
baerten28-Nov-07 21:19 
AnswerRe: DataGridView Pin
Thaer Hamael28-Nov-07 21:39
Thaer Hamael28-Nov-07 21: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.