Custom Dispose in designed form or user control

前端 未结 4 1615
说谎
说谎 2021-01-05 13:22

I\'ve created a custom WinForms UserControl and would like to override Dispose. However the code generated by the designed already contains a Dispose method. How can I add c

4条回答
  •  清酒与你
    2021-01-05 13:38

    You can move the Dispose method from the code generated file into your control cs file. I've used this under .net 2.0, it should work on 4.0 as well.

提交回复
热议问题