Form.Load Event
.NET Framework (current version)
Occurs before a form is displayed for the first time.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
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.
.NET Framework
Available since 1.1
Available since 1.1
Show: