Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Drag ListView Item

Posted on 2001-07-23
1
Medium Priority
?
1,000 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 400 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
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 Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

782 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