RadForm gets larger on .NET7 and higher

1 Answer 81 Views
Form
tar
Top achievements
Rank 2
Iron
Iron
Iron
tar asked on 16 Mar 2024, 01:26 PM | edited on 17 Mar 2024, 10:37 AM

I have a completely new winforms project. The only thing I adjusted was to change the target framework from .NET6 to .NET7 in the projects properties.

Now, each time I minimize (or maximize) a RadForm and then "normalize" it again, it is getting larger (some pixels to the right and to the bottom). This does not happen on .NET6 but on .NET7 and .NET8.

There is also an issue within the VS designer: When I open the form again its size is also slightly different (e.g. set to "300; 300" changed to "318; 243"). It also does not matter if I change the forms AutoScale value to "None", "Font", "DPI" or "Inherit".  Furthermore, I have no strange scaling in MS Windows, it is set to 100 %.

What is the reason for this behaviour and what do I need to do to prevent it?

I would also like you to check if this occurs to other controls, as well.

 

1 Answer, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 18 Mar 2024, 02:02 PM

Hi M.S.,

I appreciate the provided project.

When I open the project I notice that the project is targeting .net 7 while the NuGet package is targeting .Net 6. Keep in mind that it is recommended to use our UI.for.WinForms.AllControls.Net70 for projects targeting .Net7 or .Net 8. To test this, I have removed the referenced NuGet from the project and added the UI.for.WinForms.AllControls.Net70 NuGet with its latest version.

Then I closed the designer, cleaned, and rebuilt the project. Then to test I opened the designer and minimized/maximized the running form several times but could not observe any changes in the size of the form. You can check the updated version of your project and let me know how it goes on your side.

Regards,
Dinko | Tech Support Engineer
Progress Telerik

A brand new ThemeBuilder course was just added to the Virtual Classroom. The training course was designed to help you get started with ThemeBuilder for styling Telerik and Kendo UI components for your applications. You can check it out at https://learn.telerik.com
tar
Top achievements
Rank 2
Iron
Iron
Iron
commented on 18 Mar 2024, 02:19 PM

I've tested it with UI.for.WinForms.AllControls.Net70 (2023.1.117) but the form is still changing its size.

So, I guess it has been fixed somewhen in a later update. As my subscription ended on May 30th 2023 and I forgot to download the latest available versions for me, I wonder if the fix would have been included later or has already been ready on that date. If so, I would kindly appreciate it if you would provide me the last available libraries for my subscription in order that I could use .NET7 (and later).

Thanks in advance.

Dinko | Tech Support Engineer
Telerik team
commented on 20 Mar 2024, 12:18 PM

In general, you can download the last available version of our controls before your license expires in your Telerik account. You can check the Download Product Files for more information on how to navigate to the download page. You can try to Manually Download NuGet Packages and add it to the project.
Tags
Form
Asked by
tar
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or