PC Review


Reply
Thread Tools Rate Thread

Anyone have more than a surface understanding of DragDrop

 
 
SamSpade
Guest
Posts: n/a
 
      24th May 2004

The following is from the doc.


DragEventArgs.KeyState Property
-snip

' Set the effect based upon the KeyState.
If ((e.KeyState And (8 + 32)) = (8 + 32) And _
(e.AllowedEffect And DragDropEffects.Link) = DragDropEffects.Link)
Then
' KeyState 8 + 32 = CTL + ALT

' Link drag and drop effect.
e.Effect = DragDropEffects.Link
- snip

If I drag a Link from Word and check the value of e.AllowedEffect it is All.
But if you look at the bits of All, 4 is not set.
The value of DragDropEffects.Link is 4.
So the above will never be satisfied if e.AllowedEffect is All

1. I don't know how in DoDragDrop to say I handle all, including links.
DoDragDrop(DragDropEffects.All) will not later pass the test above.
I could use DoDragDrop(DragDropEffects.All or DragDropEffects.Link)
but there is still the problem of dragging from Word (and maybe to Word).

2. Word evidently does DoDragDrop(DragDropEffects.All) because, as I said,
if I drag a Link from Word and check the value of e.AllowedEffect it is All.
But that will not later pass the test in the documentation.

Something is amiss - probably my analysis.



I know this will take more study then most of my previous questions just to
understand the problem.
But I'm hoping someone either has already been through this or is a great
puzzle solver.









 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DragDrop Meelis Microsoft C# .NET 3 13th Dec 2005 04:50 PM
dragdrop Frank Microsoft VB .NET 1 22nd Oct 2004 06:52 AM
Dragdrop with NTD Laurent Chevallier Microsoft Dot NET Framework Forms 3 16th Aug 2004 05:22 PM
passing on Control DragDrop to parent DragDrop Microsoft C# .NET 0 12th Dec 2003 08:24 AM
multi-surface surface chart Stet Microsoft Excel Charting 1 6th Oct 2003 10:29 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:26 PM.