Z
zdrakec
Hello all:
I hope I'm simply missing something obvious...
I have a windows form, on which is a list box and a text box. I have
the MouseDown event of the ListBox coded to initiate a drag-and-drop
operation:
Me.DoDragDrop(ListBox.SelectedItem, DragDropEffects.Copy)
and the text box DragDrop event, naturally, gets the text of the
selected item and adds it to the text box.
My problem is that with the MouseDown event handled, I can't seem to
trap the DoubleClick or MouseDoubleClick event of the ListBox, which I
would also like to do: I want the user to be able either to drag an
item from the list box to the text, or simply double-click on the
listbox to append the text.
What am I overlooking?
Regards,
zdrakec
I hope I'm simply missing something obvious...
I have a windows form, on which is a list box and a text box. I have
the MouseDown event of the ListBox coded to initiate a drag-and-drop
operation:
Me.DoDragDrop(ListBox.SelectedItem, DragDropEffects.Copy)
and the text box DragDrop event, naturally, gets the text of the
selected item and adds it to the text box.
My problem is that with the MouseDown event handled, I can't seem to
trap the DoubleClick or MouseDoubleClick event of the ListBox, which I
would also like to do: I want the user to be able either to drag an
item from the list box to the text, or simply double-click on the
listbox to append the text.
What am I overlooking?
Regards,
zdrakec