Why is my Windows Forms application resizing on different computers?

I am developing a Windows Forms application with a built-in Windows Media Player. Usually it looks like this: enter image description here

Today I opened the program on my laptop and got this instead: enter image description here

Why do some elements of my program change when I run on another computer? How can i fix this?

+4
source share
2 answers

Anchoring is what causes the media controller to form itself incorrectly. Currently, you have control tied to Top | Right

What you need to do is to abandon the Anchor settings on the media control - put the control in the panel and set DockType to fill; then Anchor panel - Left | Top

+1
source

Try setting controls on the form to ensure that the control position remains normal in all situations; take a look at this DockStyle

+2
source

Source: https://habr.com/ru/post/1380406/


All Articles