How to

get file drop list from clipboard

Published: 26. September 2014 | Updated: 26. September 2014
License: Microsoft Public License (MS-PL)
Categories: Windows
Tags: C# File System Windows Winforms WPF
Was this snippet helpful for you? YESYES / NONO
Get Analyzant!

Check your entire website from code to content in minutes with Analyzant, the free analysis suite.

Free download at analyzant.com

WPF

using System.Collections.Specialized;
using System.Windows;

StringCollection files = null;
if (Clipboard.ContainsFileDropList())
{
    files = Clipboard.GetFileDropList();
}

WinForms

using System.Collections.Specialized;
using System.Windows.Forms;

StringCollection files = null;
if (Clipboard.ContainsFileDropList())
{
    files = Clipboard.GetFileDropList();
}
Send us feedback about this snippet »



Related Snippets: