DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
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:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us