473,394 Members | 1,854 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

ListView Drag & Drop

Hi,
I have 3 listview on my screen List1 , List2, List3
Now I want to be able to drag from list1 to list3 but not to list2. On the
Dragenter event is it possible to know from which object on the screen the
drag is coming.

Thanks
Ivan
Nov 8 '06 #1
2 2842
When the user starts to drag, you need to call List.DoDragDrop(object) and
pass an object across. You can write a DragDropInfo class with a variable for
the source list and a variable for the item being dragged. Then pass this to
DoDragDrop.

Ciaran O'Donnell

"Ivan Sammut" wrote:
Hi,
I have 3 listview on my screen List1 , List2, List3
Now I want to be able to drag from list1 to list3 but not to list2. On the
Dragenter event is it possible to know from which object on the screen the
drag is coming.

Thanks
Ivan
Nov 8 '06 #2
Hi, I have the same problem that Ivan but I didn't find the DragDropInfo class.
Could you explain better?

Thanks.

"Ciaran O''Donnell" wrote:
When the user starts to drag, you need to call List.DoDragDrop(object) and
pass an object across. You can write a DragDropInfo class with a variable for
the source list and a variable for the item being dragged. Then pass this to
DoDragDrop.

Ciaran O'Donnell

"Ivan Sammut" wrote:
Hi,
I have 3 listview on my screen List1 , List2, List3
Now I want to be able to drag from list1 to list3 but not to list2. On the
Dragenter event is it possible to know from which object on the screen the
drag is coming.

Thanks
Ivan

Nov 8 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Marco Auday | last post by:
I need to associate items in two listviews. I have got the drag-and-drop operation to perform as I wanted. However, I would like the items in the target listview to be highlighted when the mouse...
0
by: Andy | last post by:
Hi all, I'm developing an application which allows a drag and drop of files onto a ListView control. Everything works fine on my Windows XP development computer, but when i move the...
6
by: jojobar | last post by:
Hello, I look at the asp.net 2.0 web parts tutorial on the asp.net web site. I tried to run it under firefox browser but it did not run. If I want to use this feature in a commercial product...
4
by: Ken Swanson | last post by:
Hi, In VB.NET, how do I determine what filename has been dropped into a ListView? In my ListView's DragEnter() event, I am trying this, which according to the Help, should work: MyFilename...
3
by: OpticTygre | last post by:
Are there any good tutorials out on the net that explains the listview control with great detail? Things like drag-drop features, icon additions, etc...?
1
by: Bjoern Dietz | last post by:
Hi All, perhaps it is way to early in the morning to do proper coding, but somehow I don't get it. I try to drop a file into a Listview (.view=details), but somehow my tool doesn't let me...
2
by: TarheelsFan | last post by:
I am having problems with drag and drop into a listview. I am able to drag and drop items from within the listview, as well as drag items from the listview and drop into a picturebox. However, I...
1
by: Sim | last post by:
Hello NG, I try to use drag and drop function between two list views. For this I found following code: ...
2
by: Tom Bean | last post by:
I wrote an C# application that uses drag and drop to copy the contents of one ListViewItem to another. I call DoDragDrop() in the ItemDrag event handler, however, the ItemDrag event is being fired...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.