visual c# form update results in flickering

前端 未结 10 1040
眼角桃花
眼角桃花 2020-12-17 21:18

I have a .net app that I\'ve written in c#. On some forms I frequent update the display fields. In some cases every field on the form (textboxes, labels, picturebox, etc) ha

10条回答
  •  时光说笑
    2020-12-17 21:45

    This worked for me.

    http://www.syncfusion.com/faq/windowsforms/search/558.aspx

    Basically it involves deriving from the desired control and setting the following styles.

    SetStyle(ControlStyles.UserPaint, true);
    SetStyle(ControlStyles.AllPaintingInWmPaint, true); 
    SetStyle(ControlStyles.DoubleBuffer, true); 
    

提交回复
热议问题