Custom Dispose in designed form or user control

前端 未结 4 1692
说谎
说谎 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:50

    It's badly documented but you can Cut & Paste the Dispose method over to your side of the partial class.
    And then extend it.

提交回复
热议问题