Order between OnHandleCreated and OnLoad

In the form of a window there is a guaranteed shooting order between them, does anyone know? This is on .NET v2. It seems like the first one (sorry).

thank

+3
source share
1 answer

OnHandleCreated at the first place.

From the documentation :

The Form and Control classes expose a set of events related to the launch and shutdown of the application. When a Windows Forms application starts, the main form launch events are raised in the following order:

Control.HandleCreated

Control.BindingContextChanged

Form.load

Control.VisibleChanged

Form.Activated

Form.Shown

+8
source

Source: https://habr.com/ru/post/1775203/


All Articles