Private Sub MDIForm_Load()
With Picture2
.Appearance = 0
.BorderStyle = 0
.BackColor = &H8000000F
.DragMode = 1
.MousePointer = 9
.Top = -10000
.Height = 100000
.Width = 50
.Left = Picture1.Width - 100
End With
End Sub
Private Sub Picture1_DragDrop(Source As Control, X As Single, Y As Single)
Picture1.Width = xx
Picture2.Left = Picture1.Width - 100
End Sub
Private Sub Picture1_DragOver(Source As Control, X As Single, Y As Single, State As Integer)
xx = X
End Sub
Private Sub MDIForm_DragDrop(Source As Control, X As Single, Y As Single)
Picture1.Width = xx
Picture2.Left = Picture1.Width - 100
End Sub
Private Sub MDIForm_DragOver(Source As Control, X As Single, Y As Single, State As Integer)
xx = X
End Sub