Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which executes first? Form_Load event or the initialization of components? (C# windows form)

Tags:

c#

winforms

Which executes first? Form_Load event or the initialization of components? (C# windows form)

like image 808
yonan2236 Avatar asked Aug 05 '10 09:08

yonan2236


2 Answers

Components will be initialized before form load.

See this article about form event order.

like image 109
Oded Avatar answered Sep 20 '22 01:09

Oded


All the components of a Form are inialized first, then the Form is loaded

like image 26
Iain Ward Avatar answered Sep 21 '22 01:09

Iain Ward