Xtreme Visual Basic Talk

Xtreme Visual Basic Talk (http://www.xtremevbtalk.com/)
-   .NET Installation / Documentation (http://www.xtremevbtalk.com/-net-installation-documentation/)
-   -   visual basic 2010 express drag and drop (http://www.xtremevbtalk.com/-net-installation-documentation/326470-visual-basic-2010-express-drag-drop.html)

gAracUh 10-02-2013 09:59 PM

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



All times are GMT -6. The time now is 03:58 AM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Optimisation provided by DragonByte SEO v2.0.15 (Lite) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
All site content is protected by the Digital Millenium Act of 1998. Copyright©2001-2011 MAS Media Inc. and Extreme Visual Basic Forum. All rights reserved.
You may not copy or reproduce any portion of this site without written consent.