Im confused about this question about visual studio Which ev

I\'m confused about this question about visual studio.

Which event procedure is most often used to initialize variables or controls when a form is first loaded?

Solution

There are the events which occur for the forms in the order when they first loaded.

They are

Initialize, Load, Resize, Activate, Paint, Queryunload, Unload, Terminate.

These are the events which occur in order for the forms from loading into the memory to the exit of thr form from memory.

The first event procedure which happens for the form is Initialize event for every form. Below is the functionality of the events.

Initialize:- This is the event which occurs first when the form is being loaded. It initializes the data on the form whch is being loaded for the first time.

Load:- It is most Often used to initialize the dynamic components of the form such as control arrays. etc..

Resize:- This event occurs when the window state changes like minimise or maximise the window.

Activate:- This event occurs when the input in the form get the focus.

Paint:- This event is used to draw the form on the screen

Queryunload:- This event occurs when the form is closed

Unload:- This event occurs when the form unloads.

Terminate:- This event occurs when the form is destroyed

I\'m confused about this question about visual studio. Which event procedure is most often used to initialize variables or controls when a form is first loaded?

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site