Click here to Skip to main content
15,897,226 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
How to Implement form Load Complete event in c# ???
My windows application takes time to load form.
So whenever load event is finished
Load_Complete event should called.

Thanks in advance
Posted

There is another event that you can handle: Form.Shown.

This is fired when your Form is actually shown, well after the Form.Load event.

There is a recent article about this here:

Immediate display of WinForms using the Shown() event[^]

Nick
 
Share this answer
 
Comments
Casper Li 21-Mar-14 13:37pm    
The Shown event seems not workable...
How can I close the loading page after the main program page having been completely loaded?
Thank you. (Using Visual Studio C++ 2010)
The form will be completely loaded at the end of the event handler for the Load event.
 
Share this answer
 
v2
like what aspdotnetdev said you can call the function you want in the end of loading event function
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900