Click here to Skip to main content
15,892,575 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
sir,
i want to call a function after page load event is complete because i retrieve larz data from database so its load after some time. but i want that page load immediately so call the function after page load.
Posted
Updated 21-Aug-19 0:58am
Comments
ZurdoDev 29-Oct-14 8:02am    
Is this ASP.Net or Win Forms?
Rahulmishra011 29-Oct-14 8:26am    
it is win forms
ZurdoDev 29-Oct-14 8:30am    
They are called Forms, not Pages. If you search google using the term "page" you will likely get more results towards ASP.Net so you need to make sure yo search for Forms events, not Page events.
LaxmikantYadav 29-Oct-14 8:30am    
You can also use separate thread to load the data once form loaded with doevent().

Hi,

Try Shown event. The Shown event is only raised the first time a form is displayed; subsequently minimizing, maximizing, restoring, hiding, showing, or invalidating and repainting will not raise this event.

have a look at this link:
http://msdn.microsoft.com/en-us/library/system.windows.forms.form.shown.aspx[^]

Regards,
Praneet
 
Share this answer
 
hi Try " Activated " event.This event of form is run exactly after "Load" event.
 
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