I am having an issue with my Visual Studio’s window Designer. It is not displaying in full, not taking all available space within my visual studio. See image attached. I am sure that it is about something to do with the DPI either by the project file and/or another setting within Visual Studio. I am hoping that someone has encountered and resolved in the past. Just FYI, it was working fine for a while, but I noticed that sometimes when I open the form’s “view designer” the window’s components would stretched out completely out of my window and/or sometimes it would be in negative locations. I have tried deleting the bin/obj folders, clean the solution, and other suggestions that I read in the internet, but nothing. Another interesting thing, when I run the program, the form display correctly. Any info would be appreciate it. Thanks
Robert
Hello,
Here are some potential solutions:
1. Clear Visual Studio Designer Cache
Sometimes, layout scaling metadata persists.
Close Visual Studio.
Delete all .vs, bin, and obj folders in your solution directory. (I know you already mentioned the bin and obj folders, try deleting the .vs folder as well)
Reopen Visual Studio and rebuild your project.
2. Verify Project DPI Settings
In some cases, the Wisej project file (.csproj) may contain incorrect manifest or scaling settings.
Check your .csproj for: EnableWindowsFormsHighDpiAutoResizing
Wisej uses its own DPI management, so ensure this property is set to false or removed.
3. Windows Display Settings
If you are using two monitors. Ensure both monitors use the same scaling factor (100% or 125%).
Mixed DPI environments can desync the designer render area.
4. Open the Designer.cs file.
Manually set Location = new Point(0, 0) for the main container or top-level panels.
5. Try resetting Visual Studio settings
Open Visual Studio.
Navigate to Tools > Import and Export Settings.
Select “Reset all settings”: in the Import and Export Settings wizard.
Hope this helps,
Julie
Please login first to submit.
