Enabling Double Buffering

后端 未结 4 1015
抹茶落季
抹茶落季 2020-12-22 04:35

I\'ve seen the following code to enable double buffering on a winform:

// Activates double buffering 
this.SetStyle(ControlStyles.DoubleBuffer |
   ControlSt         


        
4条回答
  •  自闭症患者
    2020-12-22 04:54

    Setting a form's DoubleBuffering will set double buffering for that form. It's the same as calling

    form.SetStyle(ControlStyles.OptimizedDoubleBuffer, value);
    

    The other flags like UserPaint and AllPaintingInWmPaint are styles that aren't set by simply setting control.DoubleBuffering = true

提交回复
热议问题