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

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

1 Answer 19 Views
Buttons, RadioButton, CheckBox, etc
This is a migrated thread and some comments may be shown as answers.
Heath
Top achievements
Rank 1
Heath asked on 13 Nov 2014, 09:38 PM
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.

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 14 Nov 2014, 07:20 AM
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.

 
Tags
Buttons, RadioButton, CheckBox, etc
Asked by
Heath
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or