473,387 Members | 1,569 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,387 software developers and data experts.

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 1344
* "Steve Lloyd" <Re*************@laxeyRemovepartners.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***************@TK2MSFTNGP12.phx.gbl...
* "Steve Lloyd" <Re*************@laxeyRemovepartners.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*************@laxeyRemovepartners.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
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...
0
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...
2
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...
13
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...
7
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...
4
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...
13
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...
3
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...
4
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 . ...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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:
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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.