Link to home
Start Free TrialLog in
Avatar of Basicfarmer
BasicfarmerFlag for United States of America

asked on

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.

Thanks...
ASKER CERTIFIED SOLUTION
Avatar of jefftwilley
jefftwilley
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Basicfarmer

ASKER

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.