Comments (10)
This issue should probably be moved to dotnet/winforms. IsHandleCreated
was added in this commit: 9b77d91
from winforms.
@swapso I believe what you're seeing is expected and by design due to the change in the default font (documented here). To ease the pain of the migration in .NET 6 we introduced Application.SetDefaultFont API and the application bootstrap (documented here, blogged here).
Setting the application default font to ""Microsoft Sans Serif, 8pt" should set your layouts back to the original.
I would also recommend reviewing the list of the breaking changes Windows Forms SDK accepted moving from .NET Framework to .NET.
from winforms.
@RussKie, you're spot on. It only functions correctly when the forms are already open, as IsHandleCreated
returns true in that scenario. However, if the form is closed and we modify the font for the application from another part of the application, then open the form again, IsHandleCreated
returns false, leading to improper scaling.
from winforms.
Related Issues (20)
- TaskDialogPage F1 help bubbles up to owner control HOT 5
- The visual basic code source does not match any code style HOT 2
- Add Analyzers/CodeFixes to guide implementing Custom Control Properties according to WinForms best practices
- Add Analyzers/CodeFixes to guide the handling of Modal Dialogs to avoid memory leaks
- Add Analyzers/CodeFixes to guide a data entry Form's validation process HOT 1
- The ContextMenu of NotifyIcon Positioning Issue on Multi-Monitor Setup with Differing Scaling Factors HOT 4
- [Tracking] BindingContext getter isn't trim compatible
- Microsoft.Windows.Compatibility 8.0.4 references unreleased nuget packages HOT 2
- Re-occurrence of WinForms designer failing to load (was #8996) HOT 5
- [GB18030]Dotnet publish failed with CLI if project output directory with GB18030 provided level3 strings HOT 2
- TreeView has the incorrect TreeNode Editor dialog in PropertyGrid HOT 3
- Assembly resolving logic in Out-Of-Process WinForms Designer does not work for *.Resources.dll Assemblies HOT 8
- Help us improve - Quick Survey HOT 5
- "No room is available to display rows" exceptioin thrown HOT 1
- Right outer ToolStrip Label in StatusStrip isn't displayed when the left outer Label is a spring Label HOT 1
- Debug.Fail(...) crashes the Out-Of-Process WinForms Designer HOT 7
- DataGridView shown on components area, not visual design surface HOT 7
- Unstable unit test: System.Windows.Forms.Tests.ImageCollectionTests.ImageCollection_Item_Get32bppColorDepth_Success
- Unstable unit tests that need to be disabled and fixed HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from winforms.