Solved

Drag ListView Item

Posted on 2001-07-23
1
985 Views
Last Modified: 2008-03-09
Hi,

I'm building some kind of User manager and want to drag a certain user to a certsin users group.

I'm using ListView control to present icons and text.
I want to enable the user to drag item from one list view
(users) to another (users group)- When I'm trying to drag the item, the item is draged inside the list view, and can't be drag to the other list view.

Where did I go wrong ?
Should I use other control ?

Thanks

0
Comment
Question by:amavr
1 Comment
 
LVL 43

Accepted Solution

by:
TimCottee earned 100 total points
ID: 6308420
You should set the OLEDragMode property of the listview to ccOLEDragAutomatic. This will allow you to drag an item in the listview to another control (in your case another listview). At present you are actually moving the item within the listview not actually dragging it. You then need to set the OLEDropMode property of the target listview to ccOLEDropManual and handle the drop of the item in the appropriate event procedure.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question