473,802 Members | 1,960 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

OLEDragDrop w/ Directory and File List Boxes?

I'm trying to drag and drop files from a file list box to a directory list
box (the two controls are not related). Does anyone have an examples of
this? I've got the properties setup correctly on the two controls and I'm
starting the OLEDrag method of the file list box using the mouse down event.
This calls the OLEStartDrag where I am attempting to get the Data control
object setup. I think this is where my problem may be. The OLEDragDrop of
the directory list box doesn't recognize a drag from the file list box (no
visual cues even though the OLEDragOver of the directory list box is setup).
I guess I don't understand how to add files to the Data object from the file
list box. Any help would be GREATLY appreciated! Thanks
Jul 17 '05 #1
0 2701

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

Similar topics

15
2530
by: Kim Jensen | last post by:
I'd like to make a directory listing where instead of the entire filename I need it to show the filename minus the extention and get the value of charname= in the file itself. I've been told that I had to turn the directory listing into an array and then use "foreach (array as item)" to go through and open each file but I've tried several different approaches and I just can't get it to work. I've been able to make it list the directory...
12
35594
by: rockocubs | last post by:
Is there a way in Javascript to bring up dialog boxes for both opening and then also saving a file?
10
52154
by: Aaron | last post by:
Hello, I have a small application that I need to save data from 7 text boxes in to a csv file. This will entail btnNext_Click function that will create a new csv file and enter the 7 data fields in the csv file; as well, each click on next will return carriage to a new line. Client does not what his data in an Access database(he hates Access with a passion)--he feels more comfortable with Excel. This data will be no greater than 1000...
4
3713
by: Elmo Watson | last post by:
Is there a way, with the System.IO class, to do a recursive list of a directory structure? For instance, in DirectoryInfo, you have GetDirectories and GetFiles .... In Directory, you have Directory.GetFileSystemEntries(path), but I would like to know how to put this together, knowing which entry is a Subdirectory and which entry is a file, and make a recursive list of the Directory structure below a specific path - - -
3
1566
by: Eric Capps | last post by:
I am trying to open a directory on a file server to populate a drop down menu. I've been able to do this, but the results are not sorted alphabetically. How would I go about this? I've looked at the php.net site on directory functions, but haven't found a solution that works. The sort() function seemed like it should, but it instead returned an error: sort() expects parameter 1 to be array, resource given. Any help would be appreciated.
2
3505
by: Antony Clements | last post by:
i have written a program that incorporates the following code. Private Sub Dir1_Change() 'changes the folder and displays each file in the folder On Error Resume Next File1.Path = Dir1.Path RaiseEvent DirectoryChanged(Dir1.Path) File1.Selected(0) = True frmMain2.lblFileIn.Caption = Dir1.Path frmMain2.lblFileOut.Caption = Dir1.Path
0
2510
by: bcanter | last post by:
I found a file on the web that will allow you to enumerate groups but it was an .hta and the top level admins won't allow this. I need to give managers access to the groups so that when a new user is created they can tell me who they want their account to be modeled after. The html app works great as a .hta file but when it is saved as a web page it won't list the members of any groups. I get an error on line 182: "ActiveX component can't create...
1
2841
by: dshubhangi | last post by:
hi I've set richtextbox OLEDropMode Manual,catched OLEDragDrop event & in that event written below code Richtextbox1.OLEObjects.add ,,data.files(1) Now I'm able to catch OLEDragDrop as well as Dropped text/paint files r shown in richtextbox.But with above code ,when I DragDrop text file it is opened automatically,When I dragDrop Paint file it is activated in richtextbox itself.I don't want to display/activate the file dragdropped on...
4
13794
topher23
by: topher23 | last post by:
I've had a request for database functionality that I've never done before, and several hours of research have led me nowhere. Here's the skinny: My users would like to be able to drag a picture file from a digital camera onto a form and have it link to the record in the form. Research led me to the MS ListView control as a good Drag-And-Drop activator, but I can't get an OLEDragDrop event that will work. I used the example I found...
0
9562
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10538
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
10305
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...
1
10285
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10063
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...
0
9115
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5622
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4270
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
3792
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.