Solved

Drag ListView Item

Posted on 2001-07-23
1
989 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

710 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