Strange bug ...

J

Jacek Jurkowski

My app worked fine in VS.net 2005 B1 and B2 some time ...
Now (B2) when I'm trying to design some windows in my application
(not all) i'm getting bug showed bellow but I DO NOT have SizeF
property nowhere in the code. I Searched project catalog wirh
Win Commander searching "SizeF" phase and it was found only
in ... build dll's! Does anybody know whats wrong?


One or more errors encountered while loading the designer. The errors
are listed below. Some errors can be fixed by rebuilding your project, while
others may require code changes. Clicking on each error will take you to the
line of code that caused it.

Object of type 'System.Drawing.Size' cannot be converted to type
'System.Drawing.SizeF'.

Hide

at System.ComponentModel.ReflectPropertyDescriptor.SetValue(Object
component, Object value)
at
System.ComponentModel.Design.InheritedPropertyDescriptor.SetValue(Object
component, Object value)
at
System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeAssignStatement(IDesignerSerializationManager
manager, CodeAssignStatement statement)
at
System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeStatement(IDesignerSerializationManager
manager, CodeStatement statement)
 
J

Jacek Jurkowski

Ok - for the rest of You the cause was
AutoScaleDimensions



property ... i removed it from all forms and all works fine
 
D

Dmytro Lapshyn [MVP]

Hi,

What if you just delete all built project binaries and re-build the project
from scratch in Beta 2?
 

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