Added check button to form, but instance of object not in telerik form1.designer.cs?

2 posts, 0 answers
  1. Heath
    Heath avatar
    6 posts
    Member since:
    Oct 2014

    Posted 13 Nov 2014 Link to this post

    I added a new RadCheckBox from toolbox to my form. However, the object has not been initialized/instantiated in the Form1.Designer.cs code? So I have a button on a form, but I can't use it for anything.

    How can I make sure that RadCheckBox that I added to the form has an object instance in the generated Telerik code? I could try to do it myself, but I note that this class states above the InitializeComponent() the following:

    /// <summary>
    /// Required method for Designer support - do not modify
    /// the contents of this method with the code editor.
    /// </summary>
    private void InitializeComponent()


    So how to generate the code to make an object instance then? Please help. Thanks.
  2. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 14 Nov 2014 Link to this post

    Hi Heath,

    Thank you for writing.

    The only reason I can think of that might cause this is if the designer is not properly initialized. Can you please tell me whether the button is showed as component in the tray below the form? If so, than my guess is correct and you can refer to the following article for more information and solution for this case: http://www.telerik.com/support/kb/winforms/details/radcontrols-for-winforms-are-not-loaded-at-design-time.

    If this is not the case, please let me know how can I replicate the issue you experience and I will do my best to help you resolve it. Please also specify which are the installed versions of the controls you have on your machine and which assemblies (and their versions) are referenced in your project.

    I am looking forward to your reply.

    Regards,
    Stefan
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top