RadForm back to WinForm

2 posts, 0 answers
  1. Antonio Ibáñez Oliva
    Antonio Ibáñez Oliva avatar
    13 posts
    Member since:
    Aug 2012

    Posted 27 Aug 2012 Link to this post

    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.
  2. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 29 Aug 2012 Link to this post

    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 >>
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top