how to stop flickering C# winforms

前端 未结 16 2384
故里飘歌
故里飘歌 2020-11-28 04:16

I have a program that is essentially like a paint application. However, my program has some flickering issues. I have the following line in my code (which should get rid of

16条回答
  •  盖世英雄少女心
    2020-11-28 04:37

    In this condition you have to enable double buffer . Open current form and go to form properties and apply double buffer true; or you can also write this code .

    this.DoubleBuffered = true;     
    

    In form load.

提交回复
热议问题