Solved

Drag ListView Item

Posted on 2001-07-23
1
949 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
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

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…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…

762 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now