In Development
Last Updated: 17 Mar 2025 13:02 by ADMIN
ImageKey is cleared when moving a node from one treeview to another and disposing the first.
In Development
Last Updated: 17 Mar 2025 13:02 by ADMIN
Created by: John
Comments: 1
Category: UI for WinForms
Type: Bug Report
0

When trying to open the QuickStart solution from 

C:\Program Files (x86)\Progress\Telerik UI for WinForms 2025 Q1\Examples

installation folder, the following error appears:

In Development
Last Updated: 17 Mar 2025 13:01 by ADMIN

Visual Studio 2022 crashes when working with a solution containing two WinForms projects:

  • Project 1: WinForms (.NET 9) with Telerik
  • Project 2: WinForms (.NET 6) without Telerik

Steps to Reproduce:

  1. Create a new solution in Visual Studio 2022.
  2. Add two WinForms projects:
    • Project 1: WinForms (.NET 9) with Telerik
    • Project 2: WinForms (.NET 6) without Telerik
  3. Open the WinForms designer for a form in Project 1 (Telerik, .NET 9).
  4. Without closing the designer, open the WinForms designer for a form in Project 2 (.NET 6, no Telerik).
  5. Switch to the code view of the form in Project 2.
  6. Switch back to the WinForms designer in Project 2.

Expected Result:
Visual Studio should smoothly switch between code and designer views without issues.

Actual Result:
Visual Studio freezes and crashes after switching back to the WinForms designer in Project 2.

Environment:

  • Visual Studio 2022
  • Windows Version: (Windows 11 x64)
  • Telerik WinForms Version: (2025.1.211)

Additional Notes:

  • The issue seems to be related to handling different .NET versions and Telerik components in the same solution.
  • The crash occurs consistently when following the steps above.
  • No explicit error messages are shown before Visual Studio closes.

In Development
Last Updated: 07 Feb 2025 12:56 by ADMIN
Use attached to reproduce.

Workaround:

- Use RadForm it explicitly handles the controls scaling. 
- Make sure that the following of the user controls are set like this:

this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;