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

Drag And Drop/Explorer Styling

EdB
I am trying to mimic a behviour and obviously having some trouble with it.

Open up two Windows Explorer windows. Select a file in (1) and drag it to a
folder in (2). Prior to dropping it, the now "target" folder highlights as
selected, confirming to the user that that is where it's going. The best I
can do is get the Arrow with a dotted rectangle below it and then highlight
the target AFTER the drop has been made.

For information purposes, I am dragging from a TreeView to a ListBox, though
I have some flexibility on the to......I can go to another TreeView or
ListView. I have tried this with both of these controls with the same
result. Thanks in advance.

Ed
Aug 8 '05 #1
3 1555
You could likely select the target during the dragover event...

--
Patrice

"EdB" <Ed*@discussions.microsoft.com> a écrit dans le message de
news:88**********************************@microsof t.com...
I am trying to mimic a behviour and obviously having some trouble with it.

Open up two Windows Explorer windows. Select a file in (1) and drag it to a folder in (2). Prior to dropping it, the now "target" folder highlights as selected, confirming to the user that that is where it's going. The best I can do is get the Arrow with a dotted rectangle below it and then highlight the target AFTER the drop has been made.

For information purposes, I am dragging from a TreeView to a ListBox, though I have some flexibility on the to......I can go to another TreeView or
ListView. I have tried this with both of these controls with the same
result. Thanks in advance.

Ed

Aug 8 '05 #2
EdB
Thank you.

"Patrice" wrote:
You could likely select the target during the dragover event...

--
Patrice

"EdB" <Ed*@discussions.microsoft.com> a écrit dans le message de
news:88**********************************@microsof t.com...
I am trying to mimic a behviour and obviously having some trouble with it.

Open up two Windows Explorer windows. Select a file in (1) and drag it to

a
folder in (2). Prior to dropping it, the now "target" folder highlights

as
selected, confirming to the user that that is where it's going. The best

I
can do is get the Arrow with a dotted rectangle below it and then

highlight
the target AFTER the drop has been made.

For information purposes, I am dragging from a TreeView to a ListBox,

though
I have some flexibility on the to......I can go to another TreeView or
ListView. I have tried this with both of these controls with the same
result. Thanks in advance.

Ed


Aug 8 '05 #3
If you can use Win32 API interop, you can use the LVIS_DROPHILITED state for
the ListViewItem

-Atul, Sky Software http://www.ssware.com
Shell MegaPack ActiveX & .Net
Drop In Windows Explorer like Shell Browsing GUI controls for your app.

"EdB" <Ed*@discussions.microsoft.com> wrote in message
news:88**********************************@microsof t.com...
I am trying to mimic a behviour and obviously having some trouble with it.

Open up two Windows Explorer windows. Select a file in (1) and drag it to
a
folder in (2). Prior to dropping it, the now "target" folder highlights
as
selected, confirming to the user that that is where it's going. The best
I
can do is get the Arrow with a dotted rectangle below it and then
highlight
the target AFTER the drop has been made.

For information purposes, I am dragging from a TreeView to a ListBox,
though
I have some flexibility on the to......I can go to another TreeView or
ListView. I have tried this with both of these controls with the same
result. Thanks in advance.

Ed

Aug 9 '05 #4

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

Similar topics

6
by: Colin Young | last post by:
I've got a owner-drawn listview control that displays images and now I'm trying to implement drag and drop so I can drag images from the control and drop them onto other applications. So far if I...
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...
4
by: Dave | last post by:
I need to add the ability to drag from a Windows Form and drop into a non dotNet application. For example, having a generated image in my app that I wish to drag out into explorer as a friendly way...
0
by: Yavuz Bogazci | last post by:
Hi, i have build a form with a listbox and the function that he user can drag and drop files from the windows explorer in this listbox. this works for me when i start it on my localmachine. ...
1
by: Robin Tucker | last post by:
Apologies for the ambiguous title, you will be expecting me to be asking how to perform drag and drop from my application into another application. Well, kind-of. I've got drag and drop sorted,...
3
by: EdB | last post by:
I am trying to mimic a behviour and obviously having some trouble with it. Open up two Windows Explorer windows. Select a file in (1) and drag it to a folder in (2). Prior to dropping it, the...
2
by: Robert Zahm | last post by:
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...
0
by: Truevision .Net | last post by:
Hi, I have a problem with drag and drop functionality when it comes to dropping pictures from sources like for example internet explorer and the webbrowser control. Dragging and dropping from...
2
by: Andreas Mueller | last post by:
Hi All, I'm trying to show a context menu during a drag drop operation similar to the windows explorers right click drag and drop behavior (A full working sample is at the end of the post): ...
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: 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
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...

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.