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
    Stefan avatar
    2911 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:

    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.


    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.

Back to Top