View Single Post
 
Old 10-02-2013, 09:59 PM
gAracUh gAracUh is offline
Newcomer
 
Join Date: Sep 2013
Posts: 1
Default visual basic 2010 express drag and drop

Hello guys im new here i hope you can help me about my problem.. i want to use drag and drop in vb 10 as i title said using button dragging in any location. i have code in vb 6 but im confused how to do this in vb 10 check this my code in vb 6..

Code:
Private Sub b1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
b1.Drag vbBeginDrag 'b1 is button
End Sub
Private Sub b1_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
b1.Drag vbBeginDrag 'b1 is button
End Sub

Private Sub Form_DragDrop(Source As Control, X As Single, Y As Single, State As Integer)
Source.Move X, Y
Reply With Quote