Pre Load a form

N

news.microsoft.com

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 it is loaded, show it.

Thanks
 
H

Herfried K. Wagner [MVP]

news.microsoft.com said:
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 it is loaded, show it.


You cannot do that, but the behavior you describes does not occur on all
systems. I was /never/ able to reproduce it, not even on my old PII 350
with forms containing lots of controls. What you can try to do is (1)
updating the graphics driver on the client running the application, (2)
reducing the number of controls, and (3) populating controls "by need"
instead of populating them when the form loads (this solution is not
applicable in general, but it may be useful in some situations).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top