DesignSurface.Loaded Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs when the designer load has completed.
public:
event System::ComponentModel::Design::LoadedEventHandler ^ Loaded;
public event System.ComponentModel.Design.LoadedEventHandler Loaded;
public event System.ComponentModel.Design.LoadedEventHandler? Loaded;
member this.Loaded : System.ComponentModel.Design.LoadedEventHandler
Public Custom Event Loaded As LoadedEventHandler
Public Event Loaded As LoadedEventHandler
Event Type
Remarks
The Loaded event is raised for successful loads as well as unsuccessful ones. If code in this event handler throws an exception, the designer is unloaded.
The LoadedEventArgs object can be used to determine if loading succeeded, and it can also provide a list of errors that occurred during the load.
Note
Errors can occur for successful loads as well, provided that the serialization system can tolerate errors.