Solved

Drag ListView Item

Posted on 2001-07-23
1
996 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

Get HTML5 Certified

Want to be a web developer? You'll need to know HTML. Prepare for HTML5 certification by enrolling in July's Course of the Month! It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month10 days, 1 hour left to enroll

624 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