473,396 Members | 2,037 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,396 software developers and data experts.

DragOver vs DragEnter

Hi,

I just implemented drag drop in one of my programs. In researching
there are implementations that use DragEnter, a few use DragOver,
and a some use both. From the available documentation it is
difficult to tell just why this is. Can someone clarify?

Thanks,
Gary
Feb 28 '07 #1
1 11314
Hello Gary,
>I just implemented drag drop in one of my programs. In researching
there are implementations that use DragEnter, a few use DragOver,
and a some use both. From the available documentation it is
difficult to tell just why this is. Can someone clarify?
DragEnter is called when the mouse enters your control while dragging
something. DragOver is called while the mouse is still in that rectangle
and still dragging, so you can use it to change the drag feedback if
needed. It is possible to implement simple drag&drop operations without
the help of DragOver, so that's possibly what you saw in some of the
samples you looked at.
Oliver Sturm
--
http://www.sturmnet.org/blog
Feb 28 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: asra_baig | last post by:
Wherever I see the dragOver(DropTargetDragEvent ev) method in the examples, it calls the dropTargetDrag(DropTargetDragEvent ev) method which calls ev.acceptDrag method. I can't seem to find when is...
5
by: Clyde | last post by:
I am trying to implement the user feedback provided by Windows Explorer when draggng a filename from one place to another. I have the drag and drop action worked out but have had no luck in...
0
by: Fred Heida | last post by:
Hi, I try to implement dragging (and dropping) of text inside a rtf control (similar as word i guess) I have set AllowdDrop = true and setup the handlers for DragDrop, DragOver, DragEnter. is...
3
by: Sagaert Johan | last post by:
can someone explain :: (vs 2003) allowdrop=true , the code is hit , but the thrown exception is never catched ? Why is this so? private void button1_DragOver(object sender,...
2
by: bretth | last post by:
In a VB.Net Windows Forms application, I have a user control that handles mouse events. Another section of code programmatically adds a label to the control. I would like label to ignore all...
3
by: PM | last post by:
Hi, Im a student currently designing a game for a project. As part of my game, I want to be able to drag a shape over a series of panels. The shape needs to be able to be dropped on any of the...
2
by: Jeff | last post by:
Ok you can drag and drop from Outlook Express to the desktop and get an EML file on the desktop. Anyone have any idea how I can drag and drop from OE to my application and get an EML file? ...
1
by: Gary Brown | last post by:
Hi, I need to prohibit a drag/drop where the source and destination are the same. To do this the DragOver event handler needs to know it you are dragging over the control where the drag...
0
by: vikram rawat | last post by:
During dragover event in panel, i want to know the contol in panel on which my mouse is over? i am dragig a control in panel, but before droping the control i want to see where i have to relase...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.