473,385 Members | 1,769 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 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 2068
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.