Link to home
Start Free TrialLog in
Avatar of XK8ER
XK8ERFlag for United States of America

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..
ASKER CERTIFIED SOLUTION
Avatar of kaufmed
kaufmed
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
>>  Set the "AllowDrop" property to "true."

This applies to the ListView object.
Avatar of XK8ER

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.
Avatar of XK8ER

ASKER

amazing.. thanks a lot!
NP. Glad to help  :)