Center control in other control

0
0

Hi,

is any way to make a control keep center in another control (panel for example)? I tried FlexLayoutPanel, but it does not work,

Page

  • You must to post comments
0
0

Hi Page,

Did you try setting the control’s anchor to “None”? This will keep the position in the center when the user resizes the control.

  1. Select the control to center
  2. Format > Center in Form > Horizontally & Vertically
  3. Set Anchors to “None”

https://docs.microsoft.com/en-us/dotnet/framework/winforms/controls/how-to-anchor-controls-on-windows-forms

Is this what you’re after?

Let me know!

Best,

Levie

  • Levie (ITG)
    Hi Page, Let me know if this worked so I can close the issue! Best regards, Levie.
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.