Tamilselvan
asked on
how to drag and drop the command button in runtime in vb6?
how to drag and drop the command button in runtime in vb6?
If you set the command button's dragmode property to automatic, you can use some code like this in the form
Private Sub Form_DragDrop(Source As Control, X As Single, Y As Single)
Source.Left = X
Source.Top = Y
End Sub
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
https://www.experts-exchange.com/questions/24829667/how-to-move-commandbutton-using-mouse-in-vb6.html?cid=1576
Try looking especially at the third answer by BrianVSoft