[RESOLVED] Speed up application load time
I have an app that has a datagridview on each of 4 tabs. The grids are filled in the main form's load event. The Access database is on a network server.
The app takes around 10-15 seconds to load, is there any way I can speed this up, except by not filling the datasets until after it has loaded?
On another note, if I create a blank default form and run the EXE, that also takes about 8-10 seconds to load - and it isn't even doing anything. Is this because the OS has to load the .Net Framework? Is there anything that can speed this up too?
Thanks.
Re: Speed up application load time
Just a suggestion, instead of filling all 4 datagridviews, try to just fill the one that is visible on start up and fill the other ones at selected tabpage changed event. Keep in mind that all .net applications run slower in debug mode than their release version, and nothing you can really do about this.
Re: Speed up application load time
Yeah I did think of that - there was a historical reason why I didn't go down that route but due to a recent change in my app there is no reason why I can't do that now. Thanks for the prompt reply.
Re: [RESOLVED] Speed up application load time
You could also have them assigned to background worker threads. This will allow your app to load normally but pass off the heavy data processing to another thread and allow your app to load that much faster. Of course you will need to do something until the data gets there......:p
Also, you could try a splash screen and use sub main (instead of FormMain) to load the datagridviews to defray some of the time your application appears to be loading....
D