0

I'd like to perform certain operations (saving a log file, for example) in the Disposed method of a Windows Form, in my MyForm.cs file. However, the Dispose() method is automatically generated by the designer at build time (into MyForm.designer.cs, and I get

Type 'MyForm' already defines a member called 'Dispose' with the same parameter types

What would be the proper way of doing what I want? It seems to me that manually editing the "designer" file isn't a good idea.

first timer
  • 723
  • 1
  • 7
  • 17

0 Answers0