473,387 Members | 1,456 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,387 software developers and data experts.

How to control the cursor symbol during a DragDrop

I have a Listbox application.
I allow users to drag items from one spot in the listbox to another spot.
I also allow them to drag to, say, WordPad

In the DoDragDrop I use DragDropEffects.Copy so that when dragging to
WordPad the copy cursor will show.
(If I use "DragDropEffects.Move Or DragDropEffects.Copy" WordPad show the
move cursor.)

But when the user moves an item from one spot to another in the listbox I'd
like the Move cursor to show.
(Because I do not copy the item I move it)
I've tried in the DragEnter to return DragDropEffects.Move but I think
because DragDropEffects.Move is not included in the DoDragDrop I then get
the slashed-circle cursor.

The question then is: How can I use only DragDropEffects.Copy in the
DoDragDrop so WordPad show the copy cursor and still show the move cursor
when the mouse cursor is over my ListBox?

Thanks
Nov 21 '05 #1
4 1781
Developer,

Did you have a look at all kind of hoover events like Enter, MouseHoover,
MouseLeave etc etc.

I hope this helps,

Cor
Nov 21 '05 #2
I've implemented them all. Can I specify the cursor shape in one of them.
I think I did that a long time ago but am not sure.
I am sure that if I did I forgot how.
Thanks

"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
Developer,

Did you have a look at all kind of hoover events like Enter, MouseHoover,
MouseLeave etc etc.

I hope this helps,

Cor

Nov 21 '05 #3
Developer

Do you mean the cursor = cursor.whatever?

Cor
Nov 21 '05 #4
Huh, I hadn't thought of doing that.
The Drag methods change the cursor depending on what e.Effect is set to so
I was focused on telling the drag system what cursor to use.
I'll try changing the cursor in the drag events but am not sure if that will
be overridden by the drag system.
So I'll see.
Unless someone suggest a more structured method.

Thanks
"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
Developer

Do you mean the cursor = cursor.whatever?

Cor

Nov 21 '05 #5

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

Similar topics

2
by: Craig | last post by:
I'm trying to do this within a control I've created: Cursor.Current = Cursors.WaitCursor; During the initialization of the parent form, my control gets added to the form, and while the control...
6
by: Art | last post by:
Hi I'm new at this and need some help. I have a "solution" with 2 projects - the main project and a library. The library is simple, it contains a text box that will appear many times in the form...
1
by: sCryptKeeper | last post by:
I'm trying to change the cursor while a drag and drop occurs between two lists in a winforms. I tried several ways (several tutorial and solutions) found over the web. I even tried to simply...
3
by: dutsnekcirf | last post by:
I have a treeview control on a custom task pane in Excel. I've enable the ability to use Drag & Drop (by following this how-to) on the treeview to change the order of the nodes. The problem though...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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: 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
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
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.