question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Designer not loading. BindingSource + PerMonitorV2

See original GitHub issue

Environment

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:closed
  • Created 7 months ago
  • Reactions:1
  • Comments:11 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
Olina-Zhangcommented, May 22, 2023

Still an issue with 7.0 and 17.6.0 😦

It is in 17.7 Preview 1 build for .Net 7.0 and below.

2reactions
dreddy-workcommented, Apr 6, 2023

Following PR shoudl help for .NET 7.0 and below target frameworks. https://github.com/microsoft/winforms-designer/pull/5081

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found