Click here to Skip to main content
15,896,063 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: GDI+ questions Pin
Jens Olsson7-Mar-06 10:43
Jens Olsson7-Mar-06 10:43 
GeneralRe: GDI+ questions Pin
[Marc]7-Mar-06 10:50
[Marc]7-Mar-06 10:50 
GeneralRe: GDI+ questions Pin
Jens Olsson7-Mar-06 10:46
Jens Olsson7-Mar-06 10:46 
Questionhow to bind the data in datagrid using storedprocedure Pin
eswarattaluri5-Mar-06 21:56
eswarattaluri5-Mar-06 21:56 
AnswerRe: how to bind the data in datagrid using storedprocedure Pin
rccnh6-Mar-06 8:26
rccnh6-Mar-06 8:26 
QuestionHow to show Values in CrystalReportViewer ??? Pin
Abubakarsb5-Mar-06 21:39
Abubakarsb5-Mar-06 21:39 
AnswerRe: How to show Values in CrystalReportViewer ??? Pin
albCode5-Mar-06 21:46
albCode5-Mar-06 21:46 
GeneralRe: How to show Values in CrystalReportViewer ??? Pin
Abubakarsb6-Mar-06 0:18
Abubakarsb6-Mar-06 0:18 
QuestionSQLDataReader Problem Pin
Brendan Vogt5-Mar-06 21:22
Brendan Vogt5-Mar-06 21:22 
AnswerRe: SQLDataReader Problem Pin
Guffa5-Mar-06 21:58
Guffa5-Mar-06 21:58 
QuestionRe: SQLDataReader Problem Pin
Brendan Vogt5-Mar-06 22:17
Brendan Vogt5-Mar-06 22:17 
AnswerRe: SQLDataReader Problem Pin
Guffa5-Mar-06 22:27
Guffa5-Mar-06 22:27 
QuestionRe: SQLDataReader Problem Pin
Brendan Vogt5-Mar-06 22:48
Brendan Vogt5-Mar-06 22:48 
AnswerRe: SQLDataReader Problem Pin
Guffa5-Mar-06 23:48
Guffa5-Mar-06 23:48 
Questioncreate new column Pin
angelagke5-Mar-06 21:18
angelagke5-Mar-06 21:18 

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.