Difference in screen Windows Forms C #

-1

I have a problem with Visual Studio > Windows Forms. When I enable the classic Windows theme and create a project in C # the screen stays within what I want, but when I enable Aero mode, the right side of the screen is misaligned. Just below is a print of the difference (distance from the left differs from the right side).

    
asked by anonymous 16.10.2017 / 18:00

3 answers

2

This is common. There are several factors that change the "real size" of the form. Like, for example, the borders or even that shadow that is "behind" the window in Windows 10.

What you can do is work with OS functions to try to deal with it.

Maybe this OS answer can help you . As I do not know what your goal is, I can not indicate anything more than that.

    
16.10.2017 / 18:30
0

Normally putting panels 6-8 wide at the edges prevents this kind of problem.

    
16.10.2017 / 18:33
0

I was able to solve, the problem was in the minimum size and maximum size of Forms.

    
16.02.2018 / 11:09