rpkhare
asked on
Form Initialize and Form Load
What is the difference between Form Initialize and Form Load? I am ofter confused on which functions to call in Form Initialize and which on Load.
Initialize is very early in the call chain. You normally cannot access controls from it.
Your form initialise would be one of the first things, so I tend to declare any simple stuff there which is required whilst the form is loading. For the Form_Load I generally use that to set things such as whether a control is visible yet etc.
ASKER
emoreau,
Previously I was filling my DataGridView on Form Load. Later I decided to fill in From Initialize followed by Application.DoEvents(). This has considerably increased the performance. Why?
Previously I was filling my DataGridView on Form Load. Later I decided to fill in From Initialize followed by Application.DoEvents(). This has considerably increased the performance. Why?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Can you please explain: Suspend Layout and Resume Layout.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Wayne