472,958 Members | 2,666 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,958 software developers and data experts.

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 2039
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: joshsackett | last post by:
I am starting an encryption project for my database and I'm performing some tests on decryption speed. A lot of my application queries use a LIKE parameter in the WHERE clause. To keep from...
145
by: Sidney Cadot | last post by:
Hi all, In a discussion with Tak-Shing Chan the question came up whether the as-if rule can cover I/O functions. Basically, he maintains it can, and I think it doesn't. Consider two...
15
by: GS | last post by:
Hello, I am looking for any opensource package for "appointment system" for doctors, please let me know. This is just o take Name/Phone/time, incase if there is not any opensource, then is it...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.