Optimizing

  • Thread starter Thread starter David Schwartz
  • Start date Start date
D

David Schwartz

My VB.NET Windows form application clearly loads forms much more slowly than
my previous version in VB6. Any ideas how I can optimize performance,
specifically to load and display forms faster?

Thanks!
 
Hello,

David Schwartz said:
My VB.NET Windows form application clearly loads forms
much more slowly than my previous version in VB6. Any
ideas how I can optimize performance,
specifically to load and display forms faster?

The most effective way is to reduce the number of controls and not anchoring
or docking the controls.
 
In some cases you may be able to load the form in advance, but not show it.
Then when the time comes just set MyForm.Visible = True.
Also, .NET version 1.1 has slight performance increases in this area - if
you haven't upgraded yet this may be worth it.
Version 2.0 will be quite a bit better performance-wise, but we've still got
a long wait for that.

I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net
 
Back
Top