Prevent window redraw when resizing c# windows forms

前端 未结 1 1657
醉话见心
醉话见心 2020-12-24 03:05

What windows message or event can i listen to in order to stop a window from being redrawing every pixel of it\'s resize?

That is, when a user clicks on the edge of

相关标签:
1条回答
  • 2020-12-24 03:25

    Nevermind, just found these two events.

    this.ResizeBegin += (s, e) => { this.SuspendLayout(); };
    this.ResizeEnd += (s, e) => { this.ResumeLayout(true); };
    

    Works a treat

    0 讨论(0)
提交回复
热议问题