Doubleclick with dragdrop

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
 
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

My apologies, meant to post this elsewhere!

--zdrakec
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top