Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[minor bug] Label too big or on wrong position #2685
The Label is too big or on an other position, then on .net Framework.
Here a screenshot:
The program for PowerShell ( taken from https://www.script-example.com/Powershell-GUI )
and in C#
I have tested the program on .net Framework v4.0.30319 on Win8.1 with and without Visual Styles as program and as PowerShell Skript on Windows PowerShell 4.0 on one side. And on .net Core 3.1 with and without Visual Styles and on PowerShell 7.0.0-rc-1 on the other side.
The position should not differ since you are using absolute coordinates but you have the label on autosize so its size may differ. The default font is different in .NET Core and Desktop so you must make sure you are giving enough space for the larger font of both systems when you work with absolute coordinates. See https://docs.microsoft.com/en-us/dotnet/core/compatibility/framework-core#controldefaultfont-changed-to-segoe-ui-9pt for the font change.