Forms and Compact Framework
Hi!
To create a Form in Windows CE you need a special Reference for System.Windows.Forms.Form... if not, the form cannot be created on runtime (I'm using an assembly for that).
Now I have the problem, that with this special DLL I can't edit the form in the .net Form-Designer.
Has anyone of you an idea how I could fix that?
Sebastian
[380 byte] By [
skuehner] at [2007-11-19 14:35:37]

# 1 Re: Forms and Compact Framework
What do you refere as speacial DLL, could you elaborate on your problem?
# 2 Re: Forms and Compact Framework
Hi!
I do not use the System.Windows.Forms.Form which .net adds automatically to the project (class library) after selecting Project --> Add Windows Form.
This doesn't work with my Windows CE System.
So after adding a Windows Form, I delete the System.Windows.Forms.Form, System.Data, System,... References and add the specific ones for my Windows CE Compact Framework.
After that, I can't edit my Form anymore...
Any ideas?
# 3 Re: Forms and Compact Framework
I am not exactly sure but my guess is the reason you can not edit you Form because you are missing Reference to the Widnows.Form what lets you work with forms. Possibly your special dlls do not allow you form manipulation as Windows.Form does.
I developed few Windows CE application and System.Windows.Form worked well for me, not sure what problem you might have.
Try to download WidnowsCE simulator and try to run it on you PC first, may be there is a problem with you WindowsCE on the device that needed to be rebooted or resintsalled
Good luck
# 4 Re: Forms and Compact Framework
Fortog one thing,
By teh way how do you start developing your application, do you use Mobile Device SDK and choose right project at the beginning?
# 5 Re: Forms and Compact Framework
Hi!
I found a solution for my problem:
How do I add a "Form-Assembly":
1. File --> New Project --> SmartDeviceApplication (add to solution)
(Choose project type Windows Application after OK)
2. Project --> Properties --> Output Type --> Class Libraries (to create dll y not exe)
4. Delete Function static void main()
5. Add Interface (System.Windows.Forms.Form, Interface)
6. Edit functions and Properties (eg. DeviceName)