Skip to content

Textbox and Button Size Inconsistency Between .NET Framework and .NET Core in WinForms #14196

@Sasidharan-Selvakumar

Description

@Sasidharan-Selvakumar

Description

We have encountered an inconsistency where textbox and button sizes appear differently in the .NET Framework compared to the .NET Core version. This issue was noticed while creating TextBox and button in WinForms for the project. Only the Core project returns the UI correctly. Kindly provide guidance or suggest a solution to resolve this issue.

Sample Screenshot

NetCore

Image

NetFramework

This behavior also changes when we set the Application.SetCompatibleTextRenderingDefault(false);

Image

When we set the Application.SetCompatibleTextRenderingDefault(true);

Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions