VB .NET Form Question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

When I add controls to a form and run the .exe under Win XP, the outline of the form displays first and then the controls on the form. The .exe works fine but the initial show looks like the computer is running slow because the form does not show all at once. It shows one control at a time. Yes, I do have functions in the form_load event but even if I remove these functions, the same slow looking show occurs. This did not occur in VB6 unless the PC was running very slow. Is this characteristic of VB .NET? Is there a way to force the form to display all at once? Thanks very much for your help.
Marc
 
Hi Marc,

Normaly is the form painted after the load event, so show some code you have
in that?

Cor
When I add controls to a form and run the .exe under Win XP, the outline
of the form displays first and then the controls on the form. The .exe
works fine but the initial show looks like the computer is running slow
because the form does not show all at once. It shows one control at a time.
Yes, I do have functions in the form_load event but even if I remove these
functions, the same slow looking show occurs. This did not occur in VB6
unless the PC was running very slow. Is this characteristic of VB .NET? Is
there a way to force the form to display all at once? Thanks very much for
your help.
 
Hi Marc,

Dit you have that code as well in your VB6 application where you wrote about
that it was not so slow?

Cor
 
Hi Marc,

Before I reinvent the wheel, there was a short while ago a discussion about
this in the newsgroup

microsoft.public.dotnet.languages.vb

http://www.google.com/[email protected]


In my opinion a better newsgroup for question like this than this general
one.

So maybe next time you can ask this question better there.

Cor
No, I used the VB6 line control. I have not found an equivalent control
in .NET. I removed the Paint code and the form loads a lot faster. I did
not think using Paint would slow down the display. Is there any alternative
to using paint to add a line?
 
Back
Top