Hi @Nanouk04 , This can be achieved by changing the Location of PanelSide2 while setting its size.
You can refer to the following code.
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click While PanelSide1.Height < 160 And PanelSide2.Height < 161 PanelSide1.Height += 1 PanelSide2.Height += 1 PanelSide2.Location = New Point(PanelSide2.Location.X, PanelSide2.Location.Y - 1) End While End Sub Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click While PanelSide1.Height > 82 And PanelSide2.Height > 80 PanelSide1.Height -= 1 PanelSide2.Height -= 1 PanelSide2.Location = New Point(PanelSide2.Location.X, PanelSide2.Location.Y + 1) End While End Sub
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.