473,385 Members | 1,740 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

latency when loading forms

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
Mar 11 '06 #1
5 1983
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
Mar 12 '06 #2
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

Mar 12 '06 #3
Thanks chris, so how to make a loading screen while I doing this?
"Chris" <no@spam.com> ¼¶¼g©ó¶l¥ó·s»D:en**************@TK2MSFTNGP11.phx.g bl...
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

Mar 12 '06 #4
Windy,

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

Cor

<Windy> schreef in bericht news:uw*************@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

Mar 12 '06 #5
Windy wrote:
Thanks chris, so how to make a loading screen while I doing this?
"Chris" <no@spam.com> ¼¶¼g©ó¶l¥ó·s»D:en**************@TK2MSFTNGP11.phx.g bl...
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
Mar 12 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Bill K | last post by:
I am developing a winforms project in vb.net. I have several forms that have a number of controls, grids, etc. When I load these as MDI child forms, they load slowly AND they paint/repaint on the...
4
by: Bill Stock | last post by:
The few times in the past that I've loaded unbound data, I've tended to cheat and use temp tables (not really unbound) or use code for small datasets. I'm currently involved in a project that...
2
by: Rob | last post by:
I was working on a project and everything was going fine, then all of a sudden the form set as my startup object stopped loading. I tried setting some others as the startup object, and some of my...
2
by: Wayne M J | last post by:
I am capturing syslogd traffic from a firewall/router, if I display the results to Console it runs fine and dandy, but the minute I need it to go to a ListBox, DataGrid or even a text box problems...
1
by: RAJ | last post by:
Hi, I am working on a source code written earlier in VB.net.While loading some forms(already created with some controls on it), I am getting the following error:...
21
by: StriderBob | last post by:
Situation : FormX is mdi child form containing 2 ListViews ListView1 contains a list of table names and 4 sub items with data about each table. ListView2 contains a list of the columns on each...
10
by: morangolds | last post by:
Hi, I've been having a problem with C++ Windows Forms apps not "ending" when you close the form window. I've searched about this problem all over the place and most searches have lead me to...
4
by: 73k5blazer | last post by:
Hello again all.. We have a giant application from a giant software vendor that has very poor SQL. It's a PLM CAD application, that makes a call to the db for every cad node in the assembly. So...
2
by: jeff80 | last post by:
Hello, I'm an absolute newbie when it comes to SQL. I was told that SQL server does not function well on a WAN where network latency between, say, the SQL server and a front-end server is...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.