Forum Discussion
FableoSanca
Dec 08, 2023Copper Contributor
Form borders appearing different in visual studio and when the application is running
Good morning I can't understand why in my application that I made some time ago in VB.NET the edges of the forms are seen differently, in visual studio they are one way and when I start the applicat...
Abhishek_Khatri
Sep 23, 2024Brass Contributor
It might be any reason did not tell what be exactly but some suggestion is here
some times
Visual Studio might be running under different DPI settings compared to when the application runs. This can result in forms appearing differently, particularly in terms of edges, borders, and overall scaling.
Solution of it
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings>
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true/pm</dpiAware>
</windowsSettings>
</application>
some times
Visual Studio might be running under different DPI settings compared to when the application runs. This can result in forms appearing differently, particularly in terms of edges, borders, and overall scaling.
Solution of it
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings>
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true/pm</dpiAware>
</windowsSettings>
</application>