Hi Filippo,
since you can move your panel completly out of the form (on the device and desktop) with no change of getting it back, you should implement some borders like:
Code:
Sub MovePanel(Panel,x,y)
Control(Panel).left=Min(Max(-Control(Panel).Width + 10,Control(Panel).left+(x-pX)),230)
Control(Panel).top=Min(Max(-10,Control(Panel).top+(y-pY)),260)
End Sub
Now always a part of the top is accessible.