473,763 Members | 5,396 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2095
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*****@hotmai l.com> wrote in message
news:OX******** ******@TK2MSFTN GP03.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
TheBigOnion
1 New Member
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@hotmai l.com> wrote in message
news:OXmiSLbiGH A.3320@TK2MSFTN GP03.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
7594
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 changing my application I am performing all the work on the back-end; creating views, triggers and UDFs to encrypt/decrypt the data. A problem has arisen around the LIKE parameter, though. Currently: SELECT SSN, FNAME, LNAME FROM USERS WHERE LNAME...
145
6333
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 programs: /*** a.c ***/
15
2002
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 hard to implement using web/php/mysql?. Please let me know. GS
0
9564
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10148
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10002
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9823
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7368
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6643
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5406
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3917
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3528
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.