473,386 Members | 1,734 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,386 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 2205
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: John Baker | last post by:
Hi: As in the "Wizard of Oz", I want people to "pay no attention to the man behind the curtain", by freezing the screen while a whole lot of things happen. I know about ECHO OFF, but this...
1
by: RickN | last post by:
I have a form loaded with a full screen form image. I've overlayed a number of controls for filling in the form. When the form opens, I can watch as each control loads (flickering). It also does...
8
by: benben | last post by:
I created a form and overrided OnPaint, OnClick and OnResize methods. My OnPaint calls base.OnPaint then repaints the whole screen. The screen flickers a lot! It didn't happen when the app was...
14
by: SStory | last post by:
I am trying to make a splash screen for my vb.net app. It is an mdi app. including the splash code produces wierd results. not inluding makes things fine. Also have tried loading the splash...
3
by: Maileen | last post by:
Hi, I have a module in which are define 2 forms as below : '------ Module Module1 Public MyMain As New FMain Public MySplash As New FSplash Public Sub Main() MySplash.Show()
11
by: news.microsoft.com | last post by:
Is there any way to preload a form in VB.NET of how can I avoid seeing when a form is loading, how it is painting all the controls it contains? I think in VB6 I could use Load(frmTest) and after...
7
by: adh | last post by:
How do you temporarly stop the screen painting in VB.NET (alla "echo off" in vb6)? I have a modal form that when closing keeps partial showing. Thanks ADH
1
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...
2
by: Mika M | last post by:
Hi! My Windows Forms VB 2005 application has Splash Screen form specified in My Project/Application/Splash Screen. How can I close Splash Screen form programmatically when Startup form...
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: 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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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...
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.