I have been trying to find a way to fire the event when the VEGAS windows closes. However, I can only do this through a dockable control, and it has to be visible (I want to avoid this!). Is there any way I can do this without making a dockable user control?
You can create an invisible dockable control (width = height = 0) that does nothing but react to application closing. But there is a bug in Vegas (I consider it a bug): some Vegas classes are already deinitialized at that moment and accessing them will throw an exception. For example, you can't use vegas.Transport class.
@VEGASDerek please pay attention to this issue, as this can lead to various exceptions when exiting the application. All Vegas classes must not be de-initialized before the last event handler completes its work.