Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between Load event,Activate event and Enter event in the Form

I am using VB.NET for Windows applications. What is the difference between Load event,Activate event and Enter event in the Form and in which order the above event is executed.Please anyone help me.

Sivakumar.P

like image 328
sivakumar Avatar asked Mar 30 '09 10:03

sivakumar


2 Answers

See the Windows Forms Events Lifecycle for info.

like image 110
Galwegian Avatar answered Sep 20 '22 13:09

Galwegian


The Enter event is suppressed in Form. Its equivalent is Activated. Loaded occurs once during creation. Activated occurs whenever the Form becomes active (e.g. is selected by the user, opened, etc). Loaded comes before Activated.

like image 22
dommer Avatar answered Sep 21 '22 13:09

dommer