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

x
?
Solved

Listview Drag and drop events

Posted on 2008-06-18
2
Medium Priority
?
268 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
2 Comments
 
LVL 7

Accepted Solution

by:
AUmidh earned 500 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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
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 video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Integration Management Part 2

927 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