468,247 Members | 1,323 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,247 developers. It's quick & easy.

IE "steals" drag and drop to user control

I have created a C# user control which display certain filesystem
information, and allows the user to drag an drop files into and out of the
control. I then placed this user form in IE using an <object> tag.

Doing this has broken the drag and drop functionality from Windows Explorer
into IE (it still works fine going from IE to Windows Explorer). The
problem is that whenever I drag a file over IE, IE wants to implement the
drop function, and it never gets to my user control DragOver or DragDrop
functions.

I have tried disabling drag and drop in the IE security settings, but this
didn't appear to have any affect.

Does anybody know if I can override or disable the native IE drag and drop
functionality, or otherwise force it to use the control's drag and drop
functions?

Thanks,

Rob
Jun 6 '06 #1
2 1842
I thought I would post the result here in case anyone else runs into this.

It was the simplest of solutions, I was using a "second" user control that I
had made, and I had forgotten to set the "AllowDrop" property on the
treeview.

"Robert Zahm" <ro*****@hotmail.com> wrote in message
news:OX**************@TK2MSFTNGP03.phx.gbl...
I have created a C# user control which display certain filesystem
information, and allows the user to drag an drop files into and out of the
control. I then placed this user form in IE using an <object> tag.

Doing this has broken the drag and drop functionality from Windows
Explorer into IE (it still works fine going from IE to Windows Explorer).
The problem is that whenever I drag a file over IE, IE wants to implement
the drop function, and it never gets to my user control DragOver or
DragDrop functions.

I have tried disabling drag and drop in the IE security settings, but this
didn't appear to have any affect.

Does anybody know if I can override or disable the native IE drag and drop
functionality, or otherwise force it to use the control's drag and drop
functions?

Thanks,

Rob

Jun 7 '06 #2
Hi, I am trying to figure out how to write an app that would allow for drag and drop in IE as well. How did you do it?

Thanks,
Michael.

I thought I would post the result here in case anyone else runs into this.

It was the simplest of solutions, I was using a "second" user control that I
had made, and I had forgotten to set the "AllowDrop" property on the
treeview.

"Robert Zahm" <robzahm@hotmail.com> wrote in message
news:OXmiSLbiGHA.3320@TK2MSFTNGP03.phx.gbl...[color=blue]
>I have created a C# user control which display certain filesystem
>information, and allows the user to drag an drop files into and out of the
>control. I then placed this user form in IE using an <object> tag.
>
> Doing this has broken the drag and drop functionality from Windows
> Explorer into IE (it still works fine going from IE to Windows Explorer).
> The problem is that whenever I drag a file over IE, IE wants to implement
> the drop function, and it never gets to my user control DragOver or
> DragDrop functions.
>
> I have tried disabling drag and drop in the IE security settings, but this
> didn't appear to have any affect.
>
> Does anybody know if I can override or disable the native IE drag and drop
> functionality, or otherwise force it to use the control's drag and drop
> functions?
>
> Thanks,
>
> Rob
>[/color]
Jul 11 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.