Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - Clipboard.GetFileDropList empty

Reply
 
Old 06-19-2008   #1 (permalink)
Andrew Morton


 
 

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.GetFileNameWithoutExtension(nam) & vbCrLf)
Next
End Sub
-------------------------------------

Andrew



My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
(Empty) 'New' menu, empty start menu, BRAND NEW VISTA! General Discussion
Vista explorer - Folder empty, but is not empty, why? Vista General
clipboard Vista General
clipboard Vista General
file folder icons display non-empty folders as empty Vista file management


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46