473,796 Members | 2,875 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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******** *****@TK2MSFTNG P10.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.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
Mar 12 '06 #6

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

Similar topics

1
2240
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 screen, and it makes a sloppy presentation. I am unhappy with it, and obviously the client says that it is unacceptable. How can I make a nice, crisp form/screen opening? Thanks so much for you help.
4
1933
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 has numerous tables in the 200 column range, with several thousand rows of data. A consulting review prior to my involvement stressed the wasted space and database speed as the major impetus for normalization. Although the db actually works fairly...
2
1978
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 forms will load and others won't. Those that won't load at startup don't load with the Show or ShowDialog command either. Can anyone give me a hint as to what went wrong?
2
2327
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 begin to arise. It comes down to what looks like latency, but the control are not fast enough to refresh in time to display all of the packet contents. I have tried threading the function, but that only increases the latency. At one point I...
1
1919
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: ************************************** An error occurred while loading the document. Fix the error, and then try loading the document again. The error message follows: You do not have license to use this ActiveX control **************************************
21
5232
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 table and 11 sub items with data about each column. When a Row in ListView1 is selected the Data in ListVies2 is loaded to show the correct data. Initially the first row in ListView1 is selected in FormX load
10
10054
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 believe that this has to do with unreleased form component events or event handlers. I'm comparatively new to .net and windows forms, in the sense that though I've been using them for over 2 years now, it's been rather sporadic. I work with...
4
3510
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 for an assembly with many parts, from remote locations, the performance goes out the window. Locally, it all works fine because network latency is <1ms. But some remote sites we have (that are growing) latency can be as high as 80-100ms.
2
6033
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 greater than 250ms. I can't find anything information supporting this claim online, so I was hoping someone here could tell me if this is true or not? Thank You!!
0
9527
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10453
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10223
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10003
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7546
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6785
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5441
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5573
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.