Click here to Skip to main content
11,701,616 members (71,375 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#
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 2-Mar-10 22:12pm
Khaniya4.2K
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

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
  Permalink  
Comments
Casper Li at 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)
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

The form will be completely loaded at the end of the event handler for the Load event.
  Permalink  
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

like what aspdotnetdev said you can call the function you want in the end of loading event function
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 324
1 Maciej Los 275
2 Sergey Alexandrovich Kryukov 250
3 Mika Wendelius 189
4 CHill60 110
0 OriginalGriff 8,274
1 Sergey Alexandrovich Kryukov 7,317
2 CPallini 4,912
3 Maciej Los 4,146
4 Mika Wendelius 3,556


Advertise | Privacy | Mobile
Web02 | 2.8.150819.1 | Last Updated 3 Mar 2010
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100