Design view errors when upgrading project to VS2005/CF2/WM5

C

chris-s

I'm experimenting with upgrading our code base form VS2003/CF1.0/PPC
to VS2005/CF2.0/WM5.0.

The first thing to rebuild is a package of custom controls, I believe
this has worked since creating a new WM5 project to use some of the
controls works fine, at least in the emulator.

However, when opening up our main application in VS2005 to begin it's
recompile, the form designers give a lot of errors such as the
following one...


The type 'Microsoft.CompactFramework.Design.UnsafeControl' has no
property named 'ImagePos'.
[Hide] [Edit]

at
System.ComponentModel.Design.Serialization.CodeDomSerializerBase.Error(IDesignerSerializationManager
manager, String exceptionText, String helpLink)
at
System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeAssignStatement(IDesignerSerializationManager
manager, CodeAssignStatement statement)
at
System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeStatement(IDesignerSerializationManager
manager, CodeStatement statement)


The errors appear to be raised for all the custom properties on our
controls, but I do not get any of the errors in the text application.

I have tried setting the option "Project/Build/Allow Unsafe Code", but
this has made no difference.

Suggestions or help appreciated!

Chris
 
G

Guest

The desinger model changed drastically from Studio 03 to Studio 05. You
have to rewrite the designer portion of the controls.
 
C

chris-s

Thanks for that Chris. The controls were pretty simple, so I just
created a new control solution and pretty much copy/pasted the code,
all working by the end of the day.

Cheers

Chris

The desinger model changed drastically from Studio 03 to Studio 05. You
have to rewrite the designer portion of the controls.

--
Chris Tacke
OpenNETCF Consulting
Managed Code in the Embedded Worldwww.opennetcf.com
--




I'm experimenting with upgrading our code base form VS2003/CF1.0/PPC
to VS2005/CF2.0/WM5.0.
The first thing to rebuild is a package of custom controls, I believe
this has worked since creating a new WM5 project to use some of the
controls works fine, at least in the emulator.
However, when opening up our main application in VS2005 to begin it's
recompile, the form designers give a lot of errors such as the
following one...
The type 'Microsoft.CompactFramework.Design.UnsafeControl' has no
property named 'ImagePos'.
[Hide] [Edit]
at
System.ComponentModel.Design.Serialization.CodeDomSerializerBase.Error(IDes­ignerSerializationManager
manager, String exceptionText, String helpLink)
at
System.ComponentModel.Design.Serialization.CodeDomSerializerBase.Deserializ­eAssignStatement(IDesignerSerializationManager
manager, CodeAssignStatement statement)
at
System.ComponentModel.Design.Serialization.CodeDomSerializerBase.Deserializ­eStatement(IDesignerSerializationManager
manager, CodeStatement statement)
The errors appear to be raised for all the custom properties on our
controls, but I do not get any of the errors in the text application.
I have tried setting the option "Project/Build/Allow Unsafe Code", but
this has made no difference.
Suggestions or help appreciated!
Chris- Hide quoted text -

- Show quoted text -
 

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