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 application they are seen in another way. I attach two screenshots to better understand what I mean. If anyone knows what may have happened and can give me some advice on how to resolve it.
Thank you
Fabrizio
- Abhishek_KhatriCopper ContributorIt 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>