We have a big windows forms solution and need to get an event every time a form is opened or closed
for telemetry. All forms should be tracked across the entire application.
I found a collection of all the open forms through Application.OpenForms
but I don't think it is possible to observe it for changes since it is a FormCollection
.
Is there any way of doing this with minimal changes to the existing forms? Perhaps something related to the application process?