Click here to Skip to main content
15,905,322 members
Home / Discussions / C#
   

C#

 
GeneralRe: Combobox help... Pin
Dave McCool6-Mar-06 0:59
Dave McCool6-Mar-06 0:59 
QuestionCSimpleStringT::GetBuffer in C# Pin
madhusri5-Mar-06 23:24
madhusri5-Mar-06 23:24 
QuestionWhat wrong? Pin
phuonghoyden5-Mar-06 23:16
phuonghoyden5-Mar-06 23:16 
GeneralRe: What wrong? Pin
Guffa5-Mar-06 23:33
Guffa5-Mar-06 23:33 
GeneralRe: What wrong? Pin
phuonghoyden6-Mar-06 0:00
phuonghoyden6-Mar-06 0:00 
GeneralRe: What wrong? Pin
Guffa6-Mar-06 0:08
Guffa6-Mar-06 0:08 
GeneralRe: What wrong? Pin
phuonghoyden6-Mar-06 0:17
phuonghoyden6-Mar-06 0:17 
AnswerRe: What wrong? Pin
Guffa6-Mar-06 0:39
Guffa6-Mar-06 0:39 
AnswerRe: What wrong? Pin
Le centriste6-Mar-06 5:49
Le centriste6-Mar-06 5:49 
QuestionStart function every day at 23:00 Pin
i-p-g-i5-Mar-06 23:02
i-p-g-i5-Mar-06 23:02 
AnswerRe: Start function every day at 23:00 Pin
Guffa5-Mar-06 23:35
Guffa5-Mar-06 23:35 
GeneralRe: Start function every day at 23:00 Pin
i-p-g-i5-Mar-06 23:38
i-p-g-i5-Mar-06 23:38 
QuestionApplication halts Pin
Mubii5-Mar-06 22:59
Mubii5-Mar-06 22:59 
AnswerRe: Application halts Pin
Vasudevan Deepak Kumar6-Mar-06 0:27
Vasudevan Deepak Kumar6-Mar-06 0:27 
AnswerRe: Application halts Pin
Vasudevan Deepak Kumar6-Mar-06 0:28
Vasudevan Deepak Kumar6-Mar-06 0:28 
Questionform halts Pin
Mubii5-Mar-06 22:59
Mubii5-Mar-06 22:59 
QuestionNetwork text editor Pin
Dave McCool5-Mar-06 22:35
Dave McCool5-Mar-06 22:35 
Questionhow to delete all records with datarow ? Pin
hdv2125-Mar-06 21:59
hdv2125-Mar-06 21:59 
AnswerRe: how to delete all records with datarow ? Pin
Vasudevan Deepak Kumar5-Mar-06 23:53
Vasudevan Deepak Kumar5-Mar-06 23:53 
QuestionGDI+ questions Pin
Jens Olsson5-Mar-06 21:58
Jens Olsson5-Mar-06 21:58 
AnswerRe: GDI+ questions Pin
[Marc]6-Mar-06 3:20
[Marc]6-Mar-06 3:20 
GeneralRe: GDI+ questions Pin
Jens Olsson6-Mar-06 21:11
Jens Olsson6-Mar-06 21:11 
GeneralRe: GDI+ questions Pin
[Marc]7-Mar-06 2:26
[Marc]7-Mar-06 2:26 
You're welcome!

No wonder everything flickered if you invalidate the entire form every time! Laugh | :laugh:

The way i do it: You can set properties on controls, and call functions and stuff. If a property has changed on a control, i think it's the responsability to invalidate when neccesary. Also the way a control paints should be controlled by the control itself.

Architecture-wise i think is a good design, and the whole standard framework (System.Windows.Forms) does this too. For example, if you change the Text property on a Label, the Label invalidates itself, there's no need for you ti invalidate it a second time. My custom controls do the same: if the control should be repainted, it's the responsability of the control itself to make it paint/invalidate.

Why doesn't every control have double-buffer? Well, a lot of controls in System.Windows.Forms are just .Net wrappers around Windows controls. So the painting gets done by Windows, not by .Net (think about Visual Styles). I heard they changed this in .Net 2, but in 1.0 and 1.1 this is just the way it goes. Smile | :)

- Marc


"..Commit yourself to quality from day one..it's better to do nothing at all than to do something badly.."
-- Mark McCormick

|| Fold With Us! || Pensieve || VG.Net ||

GeneralRe: GDI+ questions Pin
Jens Olsson7-Mar-06 5:22
Jens Olsson7-Mar-06 5:22 
GeneralRe: GDI+ questions Pin
[Marc]7-Mar-06 5:40
[Marc]7-Mar-06 5:40 

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.