Results 1 to 4 of 4

Thread: [RESOLVED] Speed up application load time

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2005
    Location
    Norwich, UK.
    Posts
    304

    Resolved [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.

  2. #2
    PowerPoster stanav's Avatar
    Join Date
    Jul 2006
    Location
    Providence, RI - USA
    Posts
    9,290

    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.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2005
    Location
    Norwich, UK.
    Posts
    304

    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.

  4. #4
    Fanatic Member
    Join Date
    Aug 2006
    Location
    In my head
    Posts
    913

    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......

    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
    Platforms of choice: Visual Studio 2005/2008 Professional : Visual Studio 2010 Enterprise : PHP - Notepad++/WAMP

    Please Rate If I helped you.
    Please remember to mark threads as closed if your issue has been resolved.

    Reserved Words in Access | Connection Strings

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width