GetFileDropList Method


GetFileDropList Method

Location

My.Computer.Clipboard.GetFileDropList

Syntax

     Dim result As System.Collections.Specialized.StringCollection = _        My.Computer.Clipboard.GetFileDropList(  ) 

Description

The GetFileDropList method returns a collection of strings from the system clipboard, each containing a file path.

Usage at a Glance

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

  • Always use the My.Computer.Clipboard.ContainsFileDropList method to check for the presence of the desired data format before using this method.

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

Example

The following code displays the clipboard's file list.

     Dim dropFiles As System.Collections.Specialized.StringCollection     If My.Computer.Clipboard.ContainsFileDropList(  ) Then        dropFiles = My.Computer.Clipboard.GetFileDropList(  )        For Each oneFile As String In dropFiles            ListBox1.Items.Add(oneFile)        Next oneFile     End If 

Related Framework Entries

  • Microsoft.VisualBasic.MyServices.ClipboardProxy.GetFileDropList Method

  • System.Windows.Forms.Clipboard.GetFileDropList Method

See Also

Clipboard Object, ContainsFileDropList Method, GetAudioStream Method, GetData Method, GetDataObject Method, GetImage Method, GetText Method, SetFileDropList 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