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

Home Posts Topics Members FAQ

Best way to open windows forms

Hi,

I have a multi form windows application but when i open new forms they do
not load up "crisply", they open bit by bit as the items are drawn.

What is the best way to open the form so that the entire form is drawn/shown
at the same time.

I hope this post makes sense, it is a bit hazey I'm affraid.

Thanks for any help

Steve.
Nov 20 '05 #1
5 1359
* "Steve Lloyd" <Re************ *@laxeyRemovepa rtners.com> scripsit:
I have a multi form windows application but when i open new forms they do
not load up "crisply", they open bit by bit as the items are drawn.

What is the best way to open the form so that the entire form is drawn/shown
at the same time.


\\\
Dim f As New FooForm()
f.Show()
///

How many controls are you using on your form?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
<URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 20 '05 #2
Hi Steve,

MDI?

Cor
Nov 20 '05 #3
There are about 20-30.

I've tried minimizing the form until the initialization is complete and then
maximize it. But this too draws slowly.

Is this just how it is is there some fancy to buffer the display until it is
all complete ?

Thanks

Steve.
"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:%2******** *******@TK2MSFT NGP12.phx.gbl.. .
* "Steve Lloyd" <Re************ *@laxeyRemovepa rtners.com> scripsit:
I have a multi form windows application but when i open new forms they do not load up "crisply", they open bit by bit as the items are drawn.

What is the best way to open the form so that the entire form is drawn/shown at the same time.


\\\
Dim f As New FooForm()
f.Show()
///

How many controls are you using on your form?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
<URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 20 '05 #4
* "Steve Lloyd" <Re************ *@laxeyRemovepa rtners.com> scripsit:
I've tried minimizing the form until the initialization is complete and then
maximize it. But this too draws slowly.

Is this just how it is is there some fancy to buffer the display until it is
all complete ?


I doubt that there is a way to do that. The "problem" is strongly
related to .NET's and Windows Form's memory management. Whenever a form
is minimized, it is written to disk, and opening it will require some
time.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
<URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 20 '05 #5
Tom
I had a similar problem which I solved. My problem was
caused by having code in the form's Load event that did
some database initialization work that took about 0.5
seconds. The form would sort of half draw and then the
rest would pop up after a short delay.

I solved it by putting my initialization code in a routine
called from the constructor of the form. If you expand
the section of the code that says something like "windows
designer generated code", near the top you will see a
comment that says "put your initialization code here". I
put a call to a routine of mine that does my
initialization and left nothing in the forms Load event.
That solved the problem.

Hope this works for you.

Tom
-----Original Message-----
Hi,

I have a multi form windows application but when i open new forms they donot load up "crisply", they open bit by bit as the items are drawn.
What is the best way to open the form so that the entire form is drawn/shownat the same time.

I hope this post makes sense, it is a bit hazey I'm affraid.
Thanks for any help

Steve.
.

Nov 20 '05 #6

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

Similar topics

11
9273
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in C++. I find my self sometimes, trying Object app = Object(); Object *app = Object(); Object app = new Object();
0
4250
by: Anonieko Ramos | last post by:
ASP.NET Forms Authentication Best Practices Dr. Dobb's Journal February 2004 Protecting user information is critical By Douglas Reilly Douglas is the author of Designing Microsoft ASP.NET Applications and owner of Access Microsystems. Doug can be reached at doug@accessmicrosystems.com. --------------------------------------------------------------------------------
2
2363
by: Graeme Neath | last post by:
I'm having a very bizarre problem. I have a vb.net application which uses the ESRI MapObjects 2.2 component (unmanaged code). When I use the MapObjects built-in function 'CopyMap' to copy the map to the clipboard my app will crash sometimes. Even stranger, sometimes if I copy the map to the clipboard (and my app doesnt crash immediately), if I then launch Word my app will spontaneously crash! The CopyMap function takes a parameter...
13
2952
by: Academic | last post by:
I have a MDI form, sometimes child forms and sometimes forms that are neither If I close the app the child forms closing and closed event happens followed by the Mdi form receiving the events.. But the regular forms that are also open do not receive that event. This is true whether there are child forms open or not.
7
5607
by: Lee | last post by:
Hey all, I'm using the following code to send stuff accross the network, appologies for it being in full, but I've really no idea exactly where this error is occuring. =======network code============ using System; using System.Net; using System.Net.Sockets; using System.Threading;
4
2187
by: robert.waters | last post by:
Hello, I have a main form that is maximized when my application loads; this main form contains links to all other forms. I've had to specify the Popup property of these other forms, so that they are not maximized when they load. Unfortunately, this seems to have had the consequence of removing them from the Windows taskbar, which makes navigating between open forms more difficult. How would you developers deal with navigation between...
13
3553
by: robert.waters | last post by:
Do you have your users rely on the windows taskbar to manage/navigate between the forms they have open, or do you provide another (more robust) method? Does anyone use a custom navigation system (like keeping a selectable list of open forms in a listbox/commandbar/ breadcrumb trail etc.)?
3
4697
by: bsturg21 | last post by:
Hello, I have a windows form that has a series of linklabels on it, and I need to have each linklabel, when clicked, open a separate windows form that has a single paramter passed into it. The form that has the System.Windows.Forms.LinkLabel controls on it is in a different project and under a different namespace from the file where the LinkLabel_LinkClicked events are, so I can't just do frm.ShowDialog under the LinkClicked method. ...
4
3348
by: nightscorpion | last post by:
Hello Gurus, i implemented the OpenFileDialog in my Windows Form Applications and it worked perfectly fine.However when it was run on a remote desktop i got the below error . rt now im not sure where the problem is . is it something to do with any dll file which i need to include. if yes could u suggest me which dll files are involved in the open file dialog? thank u in advance See the end of this message for...
0
9673
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9525
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
10221
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...
1
10169
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
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...
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
5569
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
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.