Lets say i load Form1 and then it shows buttons which let me access Form 2,3 and 4.
Now, when i click the button to load Form2, I can see that it takes a bit of time to load a few class libraries (.dll) which makes the UI look unresponsive.
I don't see the form until the class libraries are loaded which makes the Form1 to still be shown until the libraries are loaded. But after that, it is pretty fast.
So how do i pre-load the class libraries, perhaps when the application is started?
I tried putting the using
statements to the Form1 and the compact framework is so good that it wont load until it is actually required by Form2. I am talking about 2 seconds of delay but still looks bad.
Is there anyway to overcome this problem? Cant i force the CF to load my dll's file it is loading System.dll, System.Windows.Forms.dll etc?
UPDATE:
I could load my own class libraries using
Assembly.LoadFrom
but I am still unable to load the following files when Form1 loads
Microsoft.WindowsMobile.PocketOutlook.dll
Microsoft.WindowsCE.Forms.dll
Microsoft.WindowsMobile.Utilities.dll
System.Xml.dll
Is it even possible? :)