>I have two list boxes. One list box has a list of account numbers. The second list box is made up of people associated with each account. If you move to a different account, the people change with the account. I want to be able to click on a person and drag them over to another account and drop them into a different account. The problem is when I drag the item to the other listbox, how can I find out what ListItem the cursor is over so that I know what account to assign this person in the DragDrop method?
>
>-Ed
I was able to get through using two things:
***Target- List1.DragDrop event
mouse click at nYCoord+20,nXCoord pixels
thisform.timer1.enabled=.t.
*** timer1.timer event
wait window thisform.list1.value nowait && it really shows list value for item under the dropped item, so can add your code here to 'reassign' the item
this.enabled=.f.
Edward Pikman
Independent Consultant