473,385 Members | 1,821 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.

DragDropEffects

Hi,
I'm trying to deal with drag drop technique and get into trouble with
DragDropEffect:
DragDropEffects.Link and DragDropEffects.Scroll. The explanations of MSDN
about them are short and vague:
Link - The data from the drag source is linked to the drop target.
ScrollScrolling - is about to start or is currently occurring in the drop
target.
Can anyone give me a more detail comments about such constants ?

Any help will be appreciated.


Jul 19 '05 #1
1 3585
100
Hi Hai,
DragDropEffect give info about what is going to happen if the user drop the
objects on the targed window. They are used mutually used. First the source
tells any potential target which operations are allowable using the
allowedEffects parameter of the DoDragDrop method. And then the targed tells
the source what is going to happen if the user drop the data or it tells
what the user has done (the return value of DoDragDrop). The source uses
drop effects to change the mouse cursor according to the current status of
the operation.
Actually if the source doesn't want to provide some special cursors the only
value which it should take care of is DragDropEffect.Move when it comes as a
return value of DoDragDrop method, be cause it has to delete the object from
its data.
DragDropEffect.Link is the same link operation which is part of OLE (object
linking and embedding). Anyway I don't know a person, who uses this.
DragDropEffects.Scroll should be be set by the target whenever the mouse
cursor is in the "auto scroll" portion of its view (it is scrolling the
view). It should be received in GiveFeedback event only in order the source
to set appropriate cursor for scrolling. I beleave it is senseless to have
this as a return value of DoDragDrop method and if you do I think it should
be considered as a operation cancelation.

HTH
b/rgds
100

" #Hai" <Re**********@Mail.com> wrote in message
news:uL**************@tk2msftngp13.phx.gbl...
Hi,
I'm trying to deal with drag drop technique and get into trouble with
DragDropEffect:
DragDropEffects.Link and DragDropEffects.Scroll. The explanations of MSDN
about them are short and vague:
Link - The data from the drag source is linked to the drop target.
ScrollScrolling - is about to start or is currently occurring in the drop
target.
Can anyone give me a more detail comments about such constants ?

Any help will be appreciated.


Jul 19 '05 #2

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

Similar topics

1
by: #Hai | last post by:
Hi, I'm trying to deal with drag drop technique and get into trouble with DragDropEffect: DragDropEffects.Link and DragDropEffects.Scroll. The explanations of MSDN about them are short and vague:...
1
by: James C. Li | last post by:
Hi, I've a windows' form application written in C#. I want to drag a url's link from a website application onto my windows' form TreeView control. I've been able to achieve the following 1.)...
2
by: SamSpade | last post by:
There seems to be two ways to put things on the clipboard ( I don't mean different formats): SetClipboardData and OleSetClipboard If I want to get data off the clipboard do I care how it was put...
3
by: Ajay Krishnan Thampi | last post by:
I have a slight problem implementing 'drag and drop' from a datagrid to a tree-view. I have pasted my code below. Someone please advice me on what to do...pretty blur right now. ==code== ...
3
by: Uma sakshi | last post by:
Hi I have one VB.NET application,in that application i have one datagrid control.The datagrid control contains somedata.I want to copy the data in a particular cell and paste it into my C#.NET...
3
by: Gary Dunne | last post by:
I'm writing an app that requires drag and drop operation between a ListView and a TreeView control. (The source is the ListView). During the drag drop operation I want to be able to detect the...
3
by: thomasp | last post by:
Has anyone got some sample code to do drag and drop from one listbox to another listbox using VB.Net 2005. The below code works for draging and droping one at a time, but not for multiselected...
0
by: andytsummers | last post by:
Hi I have tried to implement drag and drop by using the following code but I have several problems. 1. When you put your mouse over selected text the cursor is still the i-beam and therefore...
6
by: Alfonso2968 | last post by:
Hello, If someone can help plz. I have searched everything and all I can find is how to drag and drop within a form from panel to panel. What I need to do is Drag an image from the desktop...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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...

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.