The Login form is the first form of the application.
It is called by the Sub Main().
No big tasks (like connecting to the DB, etc) take place "till the form is just displayed".
Then why is it taking so much time ?
Printable View
The Login form is the first form of the application.
It is called by the Sub Main().
No big tasks (like connecting to the DB, etc) take place "till the form is just displayed".
Then why is it taking so much time ?
Its hard to say, but the first time your app is run it gets compiled to machine code which slows things down a bit. After the first time it should be all good though. Maybe consider showing a splash screen if you want.
A splash screen would take just as long if the form you are trying to display is basic, as you state.
You might have to reset your security settings cache by executing:
caspol -f -reset
from the VS.NET command prompt. I had the same issue and this solved it.
Besides this, make sure you have enough memory for your PC.