Drag&Drop over RichTextBox showing wrong DropEffect
-
Hi guys! I'm struggling with a weird problem I'm unable to solve so far. I want to enable drag&drop of mail attachments from Outlook. This does work when my drop target is, for example, a
Form
or aPanel
; I can get all the file names and contents, no problem. As soon as I try the same with aRichTextBox
as drop target, it doesn't work - whatever I set the desiredDropEffect
to (usuallyDropEffect.Copy
), the cursor is alwaysDropEffect.Move
when dragging files from Explorer over the RTB (minor nuisance) andDropEffect.None
if I drag mail attachments from Outlook (showstopper). It doesn't matter if I set the effect inDragEnter
orDragOver
, ifEnableAutoDragDrop
is true or false, I've even tried loading a Rich Edit control 4.1 instead of the default V2.0, but to no avail. Can anyone help? Thanks in advance!Regards, mav -- Black holes are the places where God divided by 0...
-
Hi guys! I'm struggling with a weird problem I'm unable to solve so far. I want to enable drag&drop of mail attachments from Outlook. This does work when my drop target is, for example, a
Form
or aPanel
; I can get all the file names and contents, no problem. As soon as I try the same with aRichTextBox
as drop target, it doesn't work - whatever I set the desiredDropEffect
to (usuallyDropEffect.Copy
), the cursor is alwaysDropEffect.Move
when dragging files from Explorer over the RTB (minor nuisance) andDropEffect.None
if I drag mail attachments from Outlook (showstopper). It doesn't matter if I set the effect inDragEnter
orDragOver
, ifEnableAutoDragDrop
is true or false, I've even tried loading a Rich Edit control 4.1 instead of the default V2.0, but to no avail. Can anyone help? Thanks in advance!Regards, mav -- Black holes are the places where God divided by 0...
I think its windows inbuilt text effects... well, try this
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN% Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia> -------------------------------------------------------- 128 bit encrypted signature, crack if you can
-
I think its windows inbuilt text effects... well, try this
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN% Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia> -------------------------------------------------------- 128 bit encrypted signature, crack if you can
Thanks, but what exactly do you mean by "windows inbuilt text effects"? It's not that I don't know how to handle drag&drop from outlook in general (it's working fine on non-RichTextBox controls as drop targets). The question is how to make the RTB appreciate the
DragDropEffect
I set in theDragEnter
/DragOver
events and not to tell the user that he can't drop an attachment there when I explicitely set theDragDropEffect
toCopy
.Regards, mav -- Black holes are the places where God divided by 0...
-
Thanks, but what exactly do you mean by "windows inbuilt text effects"? It's not that I don't know how to handle drag&drop from outlook in general (it's working fine on non-RichTextBox controls as drop targets). The question is how to make the RTB appreciate the
DragDropEffect
I set in theDragEnter
/DragOver
events and not to tell the user that he can't drop an attachment there when I explicitely set theDragDropEffect
toCopy
.Regards, mav -- Black holes are the places where God divided by 0...
mav.northwind wrote:
but what exactly do you mean by "windows inbuilt text effects"?
that mean windows is handling that drag drop itself as text content...
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN% Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia> -------------------------------------------------------- 128 bit encrypted signature, crack if you can