Designer not loading. BindingSource + PerMonitorV2
See original GitHub issueEnvironment
Microsoft Visual Studio Community 2022 Version 17.4.4 VisualStudio.17.Release/17.4.4+33213.308 Microsoft .NET Framework Version 4.8.09032
.NET version
.Net7 .Net6
Did this work in a previous version of Visual Studio and/or previous .NET release?
Yes in .Net framework
Issue description
Designer not loading with errors.
If you comment out this line in DesignerLoadBug.csproj
:
<ApplicationHighDpiMode>PerMonitorV2</ApplicationHighDpiMode>
OR these lines in Form1.Designer.cs
:
this.form1BindingSource = new System.Windows.Forms.BindingSource(this.components);
((System.ComponentModel.ISupportInitialize)(this.form1BindingSource)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.form1BindingSource)).EndInit();
designer will load normally.
Steps to reproduce
Open test project, open Form1 in the designer. DesignerLoadBug.zip
Diagnostics
warn: DPI mode PerMonitorV2 specified in the project is not compatible with Visual Studio process DPI mode SystemAware. Winforms designer will have DPI mode SystemAware
warn: DPI mode PerMonitorV2 specified in the project is not compatible with Visual Studio process DPI mode SystemAware. Winforms designer will have DPI mode SystemAware
fail: Request failures: Sessions/EndLoad.
Microsoft.DotNet.DesignTools.Client.DesignToolsServerException: Failed to set Win32 parent window of the Control.
Issue Analytics
- State:
- Created 7 months ago
- Reactions:1
- Comments:11 (10 by maintainers)
Top Results From Across the Web
Designer not loading. BindingSource + PerMonitorV2
NET UI framework for building Windows desktop applications. - Designer not loading. BindingSource + PerMonitorV2 · dotnet/winforms@4135e83.
Read more >Visual Studio 2022 WinForms designer hang on "Loading ...
"You can continue working while the designer is loading in the background". This screen stays forever and the designer is not loading.
Read more >Design-time errors - Windows Forms .NET
Learn about some of the common errors that occur when the Windows Forms Designer fails to load.
Read more >DevExpress WinForms 21.2.8
Design.VSCore.TypeInfoDiscovery.RemoteClassStub.ChrW' not found" error occurs when a report is opened in the Microsoft Visual Studio Report ...
Read more >Fix DPI display issues in Windows Form Designer - Visual ...
Windows Forms Designer is DPI-unaware; Restart Visual Studio as a DPI-unaware process; Use Windows to set your display scaling to 100% ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It is in 17.7 Preview 1 build for .Net 7.0 and below.
Following PR shoudl help for .NET 7.0 and below target frameworks. https://github.com/microsoft/winforms-designer/pull/5081