471,350 Members | 2,001 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Screen/Form Painting When Loading

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.
Jul 21 '05 #1
1 2025
Do they load slowly everytime that you load them or just the app is started?

If it is just when the app is started, then one solution is to create a
splash screen that is displayed with a progress bar that you update as you
create your forms (in the background as non-visible), then when the forms
are loaded, you can then display the MDI parent & children and hide the
splash screen.

If it is everytime you try to load and display one of your MDI child forms,
you need to look to see what is taking the time: Is it loading the data
into a DataSet? Binding to the DataGrid? Do you have custom DataColumns
doing background lookups? It could be any number of things.

Unless you are doing a fair bit of GDI/GDI+ custom control painting, then
there is really no reason that the forms should take long to load. Do you
have a large number (such as 100) controls on the child forms? If that is
the case, then you might want to add a forms manager class that statically
holds the MDI child form instances and simply hands them to you as you need
them.

HTH.
"Bill K" <Bi***@discussions.microsoft.com> wrote in message
news:94**********************************@microsof t.com...
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.

Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by RickN | last post: by
8 posts views Thread by benben | last post: by
11 posts views Thread by news.microsoft.com | last post: by
7 posts views Thread by adh | last post: by
1 post views Thread by Bill K | last post: by
2 posts views Thread by Mika M | last post: by
reply views Thread by XIAOLAOHU | last post: by

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.