Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / COM / January 2005



Tip: Looking for answers? Try searching our database.

dragging newbie

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Miguel Martinez - 18 Jan 2005 21:25 GMT
can someone tell me how can I drag items from one listbox to another?
thanks in advance..
Dave - 22 Jan 2005 23:46 GMT
> can someone tell me how can I drag items from one listbox to another?
> thanks in advance..
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!

Try this:

In the MouseDown handler of ListView1, do ListView1.Drag vbBeginDrag.  Set
ListView1.DragIcon to whatever icon you want.

In the DragDrop handler of ListView2, just add all the selected items in
ListView1 to ListView2.

You need to work on it a bit, but that should get you started.

Dave
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.