M
Martin Stenhoff
Is there some trick to double buffer a whole form without having to subclass
every single control on it to make each control double buffered?
I've noticed that when I resize my form the controls on it starts flicking
so much it's not even funny.
I thought I could be clever and do something like this
foreach(Control c in this.Controls){
// Set the value of the double-buffering style bits to true.
c.SetStyle(ControlStyles.DoubleBuffer, true);
}
but that won't work since the SetStyle method is declared as protected in
Control. (Why is it declared protected?)
Martin
every single control on it to make each control double buffered?
I've noticed that when I resize my form the controls on it starts flicking
so much it's not even funny.
I thought I could be clever and do something like this
foreach(Control c in this.Controls){
// Set the value of the double-buffering style bits to true.
c.SetStyle(ControlStyles.DoubleBuffer, true);
}
but that won't work since the SetStyle method is declared as protected in
Control. (Why is it declared protected?)
Martin