application.run

  • Thread starter Thread starter Erik Frey
  • Start date Start date
E

Erik Frey

Hi,

In the startup code of my application, I have the following:

Application.Run(new Form1)
Application.Run(new Form2)

As expected, when you run the program, Form1 pops up. As soon as you
close Form1, Form2 pops up. But message handling on Form2 appears to be
sluggish. Redraws and resizes are a lot slower. Does anyone know why, and
if
there's a way to fix it?

Thanks,

Erik
 
I tried the same scenario as you said.. I didnt observe
any sluggishness in the second form.. Why dont u try to
change the order in Application.Run.. and see if there is
a problem with Form2..i couldnt think wht might cause the
slowness..
 
Turns out the slowdown had nothing to do with loading the forms, and
something to do with loading an assembly into the appdomain when I didn't
need to... not really sure why that would cause things to slow down, but it
did.

Thank you for checking... I should have understood the problem better
before posting!

Erik
 
Back
Top