Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / February 2008

Tip: Looking for answers? Try searching our database.

Reducing app start-up time

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John - 22 Feb 2008 18:39 GMT
Hi

I am looking to reduce app loading time. My question is, if I use the splash
screen feature from App Properties->Application->Splash Screen does it add
to the app loading time and am I better of running the splash screen using
the background worker?

Thanks

Regards
rowe_newsgroups - 22 Feb 2008 18:54 GMT
> Hi
>
[quoted text clipped - 6 lines]
>
> Regards

I found this link using google (you know, that site I keep telling you
to look at before posting):

http://assets.devx.com/download/18810.pdf

Page 498 (the pdf starts on 495) starts talking about setting up your
splash screen to run while your application does initialization.
Please note that it still might talk some time before the splash is
shown, there is some pre-application initialization that must occur
before the application can start.

There are a lot more resources out there on splash screens if the
article doesn't tell you what you need, just start searching on
Google.

Also, it's considered polite to group similar posts by the same author
together, it would have been nice of you to just ask this question in
your earlier thread:

http://groups.google.com/group/microsoft.public.dotnet.languages.vb/browse_threa
d/thread/7d3103b0189e0379/7bb9c071e2ebdacf#7bb9c071e2ebdacf


And no, I don't just sit around and pick on people, you will find you
will receive much better help when you do your part and research a
question before posting and follow proper netiquette.

Thanks,

Seth Rowe [MVP]
Martin Zugec - 22 Feb 2008 20:24 GMT
Heya,

splashscreen is running in separate thread, so there is no need to and
it wont slow down your application. Only problem can be either when
you run your application on terminal services\citrix (you shouldnt use
transparency in that case) and sometimes I noticed that splashscreen
stays on screen even when main form was already initialized (for one
or two seconds).

If you think that your application appears to be slow (we all know
that if use see something moving, even if application load take same
amount of time, they will forgive you), I would recommend to implement
some busy bar (continuous progress bar). You can find few at
CodeProject, I am using BusyBar.dll

Martin Zugec [MVP]
Miro - 23 Feb 2008 16:53 GMT
Are you loading a dataset somewhere in the load event of the application.

I recently read - since the db has constraints on, the initial fill does not
need to check constraints on the db on the initial load (for each record) ,
so you can do something like this
<written in notepad>

Dim ds As Dataset
Dim daTemp As SqlDataAdapter

ds.EnforceConstraints = False
daTemp.Fill(ds.Tables("Table1"))
dsEnforceConstraints = True

Take note how you turn it on after the fact.
By default it is turned on, but it takes overhead to preform the constraint
on the fill object.
If the database has proper db constraints on it, you can be sure you are
getting proper data already from your db that has already validated all your
initial data for you.

-Just a thought - if something like this may be slowing you down.

Miro

> Hi
>
[quoted text clipped - 6 lines]
>
> Regards
John - 23 Feb 2008 17:58 GMT
Hi Miro

Dataset is part of the equation but as it is strongly types dataset
generated by dataset designer I presume it is not easy to override that
code?

Thanks

Regards

> Are you loading a dataset somewhere in the load event of the application.
>
[quoted text clipped - 31 lines]
>>
>> Regards
Bob Powell [MVP] - 28 Feb 2008 17:25 GMT
I have an article on pre-jitting your assemblies on my site.

Check out Windows Forms Tips and Tricks.

Signature

Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

> Hi
>
[quoted text clipped - 6 lines]
>
> Regards

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.