This is a migrated thread and some comments may be shown as answers.

RadForm back to WinForm

1 Answer 213 Views
Form
This is a migrated thread and some comments may be shown as answers.
Antonio Ibáñez Oliva
Top achievements
Rank 1
Antonio Ibáñez Oliva asked on 27 Aug 2012, 07:07 AM
Hi, i'm trying to get back a form from RadForm type to WinForm type. I have changed all the Telerik controls to standard controls, changed the line:

Inherits Telerik.WinControls.UI.RadForm

to

Inherits System.Windows.Forms.Form

But i get this error when open the forms designer:

The 'components' var is not declared or is never used (translated from Spanish) and the stack error:

en System.ComponentModel.Design.Serialization.CodeDomSerializerBase.Error(IDesignerSerializationManager manager, String exceptionText, String helpLink)
en System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager manager, String name, CodeExpression expression)
en System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager manager, String name, CodeExpression expression)
en System.ComponentModel.Design.Serialization.CodeDomSerializer.DeserializeStatementToInstance(IDesignerSerializationManager manager, CodeStatement statement)
en System.ComponentModel.Design.Serialization.CodeDomSerializer.Deserialize(IDesignerSerializationManager manager, Object codeObject)
en System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.DeserializeName(IDesignerSerializationManager manager, String name, CodeStatementCollection statements)


Any help? Thanks.

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 29 Aug 2012, 08:11 AM
Hello Antonio,

Thank you for writing.

When you change a RadForm to a standard Form there are some lines of code that should be removed from the form designer. Please build your project and see the errors that appear. Click on each one of them and delete the lines that they occur in. All of those should be in the form designer file.

I hope this helps.
 
Regards,
Stefan
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
Tags
Form
Asked by
Antonio Ibáñez Oliva
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or