SetFileDropList Method


SetFileDropList Method

Location

My.Computer.Clipboard.SetFileDropList

Syntax

 My.Computer.Clipboard.SetFileDropList(filePaths) 


filePaths (required; StringCollection)

The set of file paths to be added to the clipboard, based on the collection System.Collections.Specialized.StringCollection.

Description

The SetFileDropList method writes a collection of strings to the system clipboard, where each string contains a file path.

Usage at a Glance

  • This method is only valid in non-server applications.

  • Security restrictions in place for the active user may limit access to the system clipboard.

Example

The following code adds a list of files to the clipboard as a file drop list.

     Dim pasteFiles As New _        System.Collections.Specialized.StringCollection     pasteFiles.Add("c:\temp\file1.txt")     pasteFiles.Add("c:\temp\file2.txt")     My.Computer.Clipboard.SetFileDropList(pasteFiles) 

Related Framework Entries

  • Microsoft.VisualBasic.MyServices.ClipboardProxy.SetFileDropList Method

  • System.Windows.Forms.Clipboard.SetFileDropList Method

See Also

Clipboard Object, ContainsFileDropList Method, GetFileDropList Method, SetAudio Method, SetData Method, SetDataObject Method, SetFileDropList Method, SetImage Method, SetText Method




Visual Basic 2005(c) In a Nutshell
Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))
ISBN: 059610152X
EAN: 2147483647
Year: 2004
Pages: 712

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net