Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DragDrop and Click
Message
From
05/08/2004 17:52:54
 
 
To
05/08/2004 17:40:47
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
00931162
Message ID:
00931163
Views:
19
>I would like to be able to click a button or dragdrop the button. If I put code in the mousedown to handle the dragdrop, the click event doesn't fire. You could do this in VB6 and VFP by setting the dragmode to manual.

There are several drag/drop properties and events where you should put code for handling drag/drop. Nothing is needed in the mousedown event. I haven't tested this to see whether the button's click event will still fire this way, but I might have time to look at it later. The whole drag/drop scenario is a bit tricky until you get the hang of it, but it's not really all that hard. I believe the latest CoDe magazine had an article on drag/drop. I've done drag/drop also, but I don't have any specific "how-to" stuff compiled as yet. If you don't subscribe to CoDe magazine, perhaps I can take some time to put together a few code snippets for a how-to. Lemme know if you need it ...

~~Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform