Home All Groups Group Topic Archive Search About

latency when loading forms

Author
11 Mar 2006 5:07 PM
Windy
Hi all,

    I had create my own new Form.  however, when ever i call the showdialog
i take 2-3s to load for the first time only.

anyway sample code to performance the things as below:
i.e.  preload the forms once? create a loading screen when loading? ..

also any tips to tune the time performance when loading form the first time?

Thanks a lot.
Windy

Author
12 Mar 2006 5:00 AM
iwdu15
try loading the form when you load your main form, but have its opacity at 0,
then when u want to show it, just change the opacity to 1
--
-iwdu15
Author
12 Mar 2006 5:26 AM
Chris
iwdu15 wrote:
> try loading the form when you load your main form, but have its opacity at 0,
> then when u want to show it, just change the opacity to 1

You don't even need to do the opacity thing.

Load the form but don't show it....

Dim F as new Form

That is the part that takes time.  Then do
F.Show to show it
Author
12 Mar 2006 5:38 AM
Windy
Thanks chris, so how to make a loading screen while I doing this?


Show quoteHide quote
"Chris" <no@spam.com> ¼¶¼g©ó¶l¥ó·s»D:enIFFWZRGHA.1***@TK2MSFTNGP11.phx.gbl...
> iwdu15 wrote:
>> try loading the form when you load your main form, but have its opacity
>> at 0, then when u want to show it, just change the opacity to 1
>
> You don't even need to do the opacity thing.
>
> Load the form but don't show it....
>
> Dim F as new Form
>
> That is the part that takes time.  Then do
> F.Show to show it
>
Author
12 Mar 2006 3:51 PM
Chris
Windy wrote:
Show quoteHide quote
> Thanks chris, so how to make a loading screen while I doing this?
>
>
> "Chris" <no@spam.com> ¼¶¼g©ó¶l¥ó·s»D:enIFFWZRGHA.1***@TK2MSFTNGP11.phx.gbl...
>
>>iwdu15 wrote:
>>
>>>try loading the form when you load your main form, but have its opacity
>>>at 0, then when u want to show it, just change the opacity to 1
>>
>>You don't even need to do the opacity thing.
>>
>>Load the form but don't show it....
>>
>>Dim F as new Form
>>
>>That is the part that takes time.  Then do
>>F.Show to show it
>>
>
>
>

do a search online for "splash screen vb.net".  There are different ways
of doing it if you are using 2005 or 2003

Chris
Author
12 Mar 2006 7:35 AM
Cor Ligthert [MVP]
Windy,

Can you show us some code, because depending of course of the computer and
the load on that, should it come direct.

Cor

Show quoteHide quote
<Windy> schreef in bericht news:uwkZ61SRGHA.792@TK2MSFTNGP10.phx.gbl...
> Hi all,
>
>    I had create my own new Form.  however, when ever i call the showdialog
> i take 2-3s to load for the first time only.
>
> anyway sample code to performance the things as below:
> i.e.  preload the forms once? create a loading screen when loading? ..
>
> also any tips to tune the time performance when loading form the first
> time?
>
> Thanks a lot.
> Windy
>