Solved

Listview Drag and drop events

Posted on 2008-06-18
2
266 Views
Last Modified: 2010-04-21
I have a listview that is populated from a database.
I need to be able to drag an item from the listview to a treeview and perform subsequent operations.
Everything works fine except...

How do I determine the text of the item that is being dragged from the listview if the user just left clicks and hold down the mouse key and drags.
I have tried a variety of events but none seem to fire at the right time.  
I am using Visual studio 2008 using .net 2.0 framework.
0
Comment
Question by:vollmesg
[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
2 Comments
 
LVL 7

Accepted Solution

by:
AUmidh earned 125 total points
ID: 21819047
When you click on listview item for draging the first operation is it selected. so you can get its text as
Dim strText as String=listview1.SelectedItems(0).Text;
0
 

Author Closing Comment

by:vollmesg
ID: 31468553
Thanks. This only seems to work on the dragdrop event.  That was my problem.
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

691 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