Forms in a Class library

  • Thread starter Paul [Paradise Solutions]
  • Start date
P

Paul [Paradise Solutions]

Hey all

In order to keep load times down, I started putting all my forms into a
Class Library (to keep exe small).
All was going well (application was running as intended) untill VS
'dynamicly' removed a line from the Initialise Controls sub setting my
input panel to a new instance. Manually putting it back in enabled the
software to work again. This removal of code occurred a few times, and
replacing the code fixed for each occasion.
However, on running up the same project this morning VS is now
complaining that:

Could not find type 'Microsoft.WindowsCE.Forms.InputPanel'. Please make
sure that the assembly that contains this type is referenced. If this
type is a part of your development project, make sure that the project
has been successfully built.


I have WindowsCE referenced in my references, and have added it to
project level imports but to no avail. Have also tried removing the
reference and re-adding it - InputPanel seems to have gone missing.

Anyone have any ideas?


Thanks


Paul
 
J

Joe Audette

I think the code changes happen whenever you go to
designer view. I've seen that before. Make sure your
reference is there for Microsoft.WindowsCE.Forms not just
a reference to WindowsCE.
Also I've seen a lot of weird stuff with VS.NET where if
you close and re-open the IDE or reboot it works
correctly again.

Hope that helps,

Joe Audette
-----Original Message-----
Hey all

In order to keep load times down, I started putting all my forms into a
Class Library (to keep exe small).
All was going well (application was running as intended) untill VS
'dynamicly' removed a line from the Initialise Controls sub setting my
input panel to a new instance. Manually putting it back in enabled the
software to work again. This removal of code occurred a few times, and
replacing the code fixed for each occasion.
However, on running up the same project this morning VS is now
complaining that:

Could not find
type 'Microsoft.WindowsCE.Forms.InputPanel'. Please make
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top