PC Review


Reply
Thread Tools Rate Thread

Best way to open windows forms

 
 
Steve Lloyd
Guest
Posts: n/a
 
      20th Jul 2004
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.


 
Reply With Quote
 
 
 
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      20th Jul 2004
* "Steve Lloyd" <(E-Mail Removed)> 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/>
 
Reply With Quote
 
Cor Ligthert
Guest
Posts: n/a
 
      20th Jul 2004
Hi Steve,

MDI?

Cor


 
Reply With Quote
 
Steve Lloyd
Guest
Posts: n/a
 
      20th Jul 2004
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]" <hirf-spam-me-(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> * "Steve Lloyd" <(E-Mail Removed)> 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/>



 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      20th Jul 2004
* "Steve Lloyd" <(E-Mail Removed)> 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/>
 
Reply With Quote
 
Tom
Guest
Posts: n/a
 
      20th Jul 2004
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 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.
>
>
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to open Webappication forms in windows application Ramesh Microsoft C# .NET 1 29th Jan 2008 02:18 PM
How close/open forms in Windows app? Ronald S. Cook Microsoft C# .NET 3 8th Oct 2006 05:00 AM
Open Windows Forms =?Utf-8?B?bmJvaGFuYQ==?= Microsoft C# .NET 3 20th Feb 2006 07:18 AM
Windows forms - Open event Paul Sampson Microsoft C# .NET 1 11th Sep 2003 08:39 AM
open a new browser window in Windows Forms VR Microsoft C# .NET 5 7th Aug 2003 05:19 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:56 AM.