How to create a panel of forms, even if the form has changed shape. Using the designer, locate the panel in the center of the form, and then clear c # windows application
Anchor property, it is not anchored on any edge
For some reason, you will need to place the code in the panel (for example depending on what happens during the form load ) You can do something like this:
Setting the code and setting // to resize it Is not _panel. Location = new point (this .clienticize with / 2 - _thepanel.Size with / 2, this client size .hit / 2 - _thepanel.Size.Height / 2); _thePanel.Anchor = AnchorStyles.None;
He should take care of most scenarios, I imagine.
Comments
Post a Comment