|
|
|
start date: Mon, 09 Jul 2007 20:03:46 -0000,
posted on: microsoft.public.dotnet.framework.adonet
back
| Thread Index |
|
1
zdrakec
|
|
2
zdrakec
|
Doubleclick with dragdrop
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
Date:Mon, 09 Jul 2007 20:03:46 -0000
Author:
|
Re: Doubleclick with dragdrop
On Jul 9, 3:03 pm, zdrakec wrote:
> 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
Date:Mon, 09 Jul 2007 21:00:28 -0000
Author:
|
|
|