Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Another Code generation for Property XXX failed.
 

Another Code generation for Property XXX failed.

Hi,

When I open-up a form which a bunch of controls (partly custom controls) on it, they are immediately marked as having been changed in Source-Control. I then open-up the resx file which seems to be the source of the problem and I get the following error:

Code generation for property 'DesignTimeLayout' failed. Error was: 'Unable to cast object of type 'Janus.Windows.GridEX.GridEXLayout' to type 'Janus.Windows.GridEX.GridEXLayout'.'

After hitting OK, if I jump into the form, then back into the RESX, the corresponding layout-strings are gone. They are readable and ok, though!

If I compile and run the program, everything is fine and the properties are read and the grid displays fine. Also this problem only seems to occur once in a while. At which point it's very tricky to resolve again: I must preserve the original layout by copying the data from the RESX file before they disappear, then create the DesignTimeLayout (an XML structure) again by doing something in the grid which causes this property to be serialized again. Then I replace the serialized value with my preserved one to restore the design-time layout.

Has anyone experienced this?

Tilfried Weissenberger  Monday, October 30, 2006 6:38 AM
never mind. seems to be a problem with Janus - their forum states that it's caused if some DLLs are not resolved correctly (weid?!) - if anyone needs more infos, see www.janusys.com
Tilfried Weissenberger  Monday, October 30, 2006 6:44 AM

You can use google to search for other answers

Custom Search

More Threads

• ControlDesigner at runtime
• Hosting a designsurface within a designer
• UserControl in a DataGridView / DataGridViewCell
• Highlight a column in tableLayoutPanel after a button click
• How to change the look of the Caption Bar?
• Getting 'MissingManifestResourceException' on derived control
• Inheriting form with TabControl
• How to retrieve binding source like in DataGridView
• CollectionEditor re-creates removed items
• MDI CHILD QUESTIOn