![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | 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 Specs![]() |
![]() |
| 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 | |||