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

UI controls cannot be added to Win Forms

2 Answers 158 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ammar
Top achievements
Rank 1
Ammar asked on 05 Feb 2021, 10:17 PM

Hi all,

I have an issue. I am working on a C# WinForm with Telerik extension. The issue is that when I drag and drop a UI control to the WinForm, the controls do not appear on the form. Instead, the name of the control appears under the form as you can see in the attached photo. I think there is a mismatch of Telerik versions the one installed on my Visual Studio is different to the one previously used on the project. Any suggestions?

Thanks in advance.

2 Answers, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 08 Feb 2021, 05:34 AM

Hi, Ammar,

According to the provided screenshot, it seems that the dragged controls from the Toolbox are added in the components tray. Usually, a common reason for this is assemblies version mismatch between the Toolbox version and the referred assemblies in the application.

I would like to ask you to carefully check the references to all Telerik controls in your project and make sure that they are the same version considering the suffix as well (.20 or .40). Better yet, you can remove all references and add them anew by using the DLLs from your fresh installation. Delete the license.licx file. After that, you should rebuild your project, close Visual Studio and open it again to make sure that no references are kept in the memory by Visual Studio. 

You can also right click on the Toolbox and select the reset option.

I hope this information helps. If you need any further assistance please don't hesitate to contact me.

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Ammar
Top achievements
Rank 1
answered on 08 Feb 2021, 09:43 PM
Thank you so much. Problem solved :) 
Tags
General Discussions
Asked by
Ammar
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Ammar
Top achievements
Rank 1
Share this question
or