Surface. Unloading Event
Occurs when a designer is about to unload.
public: event EventHandler ^ Unloading;
public event EventHandler Unloading;
member this.Unloading : EventHandler
Public Custom Event Unloading As EventHandler
When a designer unloads, the entire state for that designer is destroyed, including the designer's view. The view should be unparented at this time.