0
In the element properties, you will find the option Layout and define the Anchor for None.
0
1
It worked out! Thank you very much!
0
you tbm can do via code:
Knowing that the center of the Container is half its width . Width / 2 and half its height . Heigth / 2
control. Top = (Container.Heigth / 2) - (control.Heigth - 2);
control. Left = (Container.Width / 2) - (control.width - 2);
Note: the container is nothing more, than its container.
Browser other questions tagged c# visual-studio
You are not signed in. Login or sign up in order to post.
use the Achor properties. If you want it to increase according to the form, leave all marked, otherwise uncheck all
– Rovann Linhalis
I don’t want it to grow, I want it to stay centered and the same size.
– use3265498465
so the "otherwise, clear all." As the colleague answered below, leave as 'None''
– Rovann Linhalis
Sure! Thank you very much!
– use3265498465