In the Designer, right-click Panel1 and select Duplicate and you will get exactly what you need:
1. A new panel named Panel2, assuming the name is not in use already.
2. Panel2 sits on top of Panel1
3. Both panels have same parent
the panel1 and panel 2 are already in the same parent. and my goal for panel2 is to move it at panel1 when i click the button at debug mode.
its like it has a sliding animation on it while mivong on the panel 1
Move button:
Private Sub movebtn_Click
Panel2.SetLayoutAnimated(100,Panel1.Left,Panel1.Top,460dip,700dip)'trying to set panel2 at the top of panel1
End Sub