XK8ER
asked on
vb.net load records into listview
hello there,
I have a listview with two columns one fore first name and one for last name...
I have a little button that when I click on it, it loads the text file with the data..
I would like to know how can I do the same thing but dragging the text file into the listview..
I have a listview with two columns one fore first name and one for last name...
I have a little button that when I click on it, it loads the text file with the data..
I would like to know how can I do the same thing but dragging the text file into the listview..
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
it works.. whats does the ListView1_DragEnter exactly do?
The DragEnter event fires when the mouse is moved over a control while the mouse button is depressed (i.e. dragging). Inside of the handler for the event (ListView1_DragEnter), we are checking that the data associated with the drag that raised the event is a file (or group of files). Once we have verified that, we change the Effect, which under the hood causes the mouse cursor to change. This change in cursor is a cue to the user that the control which the mouse is currently hovering over can accept the type of data associated with the current drag.
ASKER
amazing.. thanks a lot!
NP. Glad to help :)
This applies to the ListView object.