Form.Load Event

 

Occurs before a form is displayed for the first time.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

member Load : IEvent<EventHandler,
    EventArgs>

You can use this event to perform tasks such as allocating resources used by the form.

For more information about handling events, see Handling and Raising Events.

The following code example demonstrates how to use the SetDesktopLocation, Load, Activated, and Activate members. To run the example, paste the following code in a form called Form1 containing a Button called Button1 and two Label controls called Label1 and Label2.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: