ClipboardProxy.ContainsFileDropList Method
.NET Framework 2.0
Note: This method is new in the .NET Framework version 2.0.
Returns a Boolean indicating whether the Clipboard contains a file drop list.
Namespace: Microsoft.VisualBasic.MyServices
Assembly: Microsoft.VisualBasic (in microsoft.visualbasic.dll)
ClipboardProxy Members
Microsoft.VisualBasic.MyServices Namespace
Clipboard.ContainsFileDropList
My.Computer.Clipboard Object
Storing Data to and Reading From the Clipboard
My.Computer.Clipboard.GetFileDropList Method
My.Computer.Clipboard.SetFileDropList Method
Assembly: Microsoft.VisualBasic (in microsoft.visualbasic.dll)
For more detailed information, see the Visual Basic topic My.Computer.Clipboard.ContainsFileDropList Method.
A file drop list is a collection of strings containing path information for files.
This example determines if there is a file drop list on the Clipboard and adds the list to the ListBoxlstFiles if they exist.
If My.Computer.Clipboard.ContainsFileDropList Then Dim filelist As System.Collections.Specialized.StringCollection filelist = My.Computer.Clipboard.GetFileDropList() For Each filePath As String In filelist lstFiles.Items.Add(filePath) Next End If
This code will create an exception if there is no ListBox named lstFiles.
Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Reference
ClipboardProxy ClassClipboardProxy Members
Microsoft.VisualBasic.MyServices Namespace
Clipboard.ContainsFileDropList
Other Resources
My.Computer.Clipboard.ContainsFileDropList MethodMy.Computer.Clipboard Object
Storing Data to and Reading From the Clipboard
My.Computer.Clipboard.GetFileDropList Method
My.Computer.Clipboard.SetFileDropList Method