visual c# form update results in flickering

前端 未结 10 1094
眼角桃花
眼角桃花 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:54

    You can double buffer almost every windows forms control, although most of the time it requires that you inherit from the desired control and override a protected property. Be cautioned, though, that I've spent quite a bit of time on the same issue and I've yet to fully remove flicker on my more complex forms.

    If you want truly flicker-free windows, I suggest looking at WPF.

提交回复
热议问题