Drag out of listview to remove item.

Hello experts, I am using listview and treeview controls on many of my forms because it allows me to use drag and drop. When I drop an item onto a listview or treeview I use the OLEDragDrop event and then process the drop. One problem that I would like to solve is when an item needs to be removed from a table. Currently the item is displayed in my listview control. I would like to simply drag the item out of the control and then drop anywhere to remove the item from the table. I currently use a button on the form to remove the item but I would like to implement the drag. I am not sure how to do this since I only ever have one listview or treeview on a form at a time and the access form does not seem to have the dragdrop event. Is there a way this can be done easily.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

This is not normal M$ behavior. Demonstrated most efficiently when you're using a File Explorer and you attempt to drag an item to an area where its not allowed to be dropped. It simply will not let you. Access drag and drop works using the same DLL and as such, acts the same way. You might consider a special right click menu, or perhaps a destination "Listbox" that you use as a "Trash Can" so that you have somewhere to drop it.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
BasicfarmerAuthor Commented:
I like that Idea, I guess now that I thinnk about it you are correct that it is not normal Behavior. I think I had it in my mind becuase that is how you can remove an item from the tool bar or menu bar when customizing the menus. Thanks for your input.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.