Question: How to make a panel center of form, even if the size of the form is changed.
Using c# windows application

Answer: 
set its Anchor property to None :

```
this.panel1.Anchor = System.Windows.Forms.AnchorStyles.None;

```
```
Private Sub Panel1_Paint(sender As Object, e As PaintEventArgs) Handles Panel1.Paint
    Panel1.Location = New Point(ClientSize.Width / 2 - Panel1.Size.Width / 2, ClientSize.Height / 2 - Panel1.Size.Height / 2)
    Panel1.Anchor = AnchorStyles.None
End Sub

```