Prevent redrawing of controls on resize for Windows Forms

前端 未结 3 1723
[愿得一人]
[愿得一人] 2021-01-01 07:00

I have a TableLayoutPanel which holds a dynamic number of controls inside a SplitterPanel. A user may want to resize the panel to fit these Controls to avoid use of a scrol

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-01 07:50

    You could hook up the resize event of your parent container and set the e.Handled or e.Cancel property to true and then do a manual redraw on onMouseUp.

提交回复
热议问题