Pre Load a form

  • Thread starter Thread starter news.microsoft.com
  • Start date Start date
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
 
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).
 
Back
Top