473,506 Members | 17,000 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Clipboard.GetFileDropList empty

I'm trying to use Clipboard.GetFileDropList to drag-and-drop a list of
filenames from an Explorer window into a TextBox, but the only way I can get
it to work is select the items in Explorer, press Ctrl+C, and then drag the
files in.

I have never seen the Ctrl+C step needed anywhere else - am I missing a step
somewhere, or using the wrong method?

-------------------------------------
Private Sub TextBox1_DragDrop(ByVal sender As Object, ByVal e As
System.Windows.Forms.DragEventArgs) Handles TextBox1.DragDrop
Dim names As New StringCollection
names = Clipboard.GetFileDropList()
For Each nam In names
TextBox1.AppendText(IO.Path.GetFileNameWithoutExte nsion(nam) & vbCrLf)
Next
End Sub
-------------------------------------

Andrew
Jun 27 '08 #1
0 1113

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

Similar topics

2
6892
by: Gey-Hong Gweon | last post by:
Is there a way to copy a PIL image to windows clipboard (as a dib image or a bitmap, I suppose)? What I would like to accomplish is to do a fast copy and paste of images from my python...
0
568
by: Ata | last post by:
Hello, I am trying to copy the contents of the output of SQL Reporting Services to a PowerPoint slide. For this, I am using SQL Reporting Services to obtain an IMAGE stream, which I paste to the...
2
3853
by: emr | last post by:
Hi, i want to empty clipboard but i don't want to use this one Clipboard.SetDataObject("",true); It must be really empty when i do this...
4
6573
by: Joshua Campbell | last post by:
I am working on an application that needs to parse out data that has been copied into the clipboard. My first questions are how can I detect if the clipboard is empty, and how can I empty the...
1
281
by: Clipboard Junkie | last post by:
I have a user that usually has a bunch of stuff on the clipboard, and I'm looking for a quick method this user can use to wipe everything from the clipboard. At this point, I'd prefer a VB.NET...
3
3485
by: Lee | last post by:
Hi, How do i check to see if the clipboard is empty? thanks in advance lee
2
2707
by: john | last post by:
In a button I have this code: Testfield.SetFocus DoCmd.RunCommand acCmdPaste When the clipboard is empty this gives an error saying that this action is not available at the moment. I'd like...
8
2598
by: serge calderara | last post by:
Dear all, I have an treeview control with different node object, I would like to implement the Copy/Paste function of an object . For that I am using the folowing function to copy teh object to...
8
2455
by: active | last post by:
Guess I'm looking for someone who likes to work difficult puzzles. I can't seem to ever retrieve a palette handle from the clipboard. Below is a simple test program that demonstrates the...
0
7103
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
7307
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
7370
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...
1
7021
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
7478
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
5614
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
3188
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3177
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
409
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.