System.Windows.Forms.Clipboard.GetFileDropList()

Here are the examples of the csharp api class System.Windows.Forms.Clipboard.GetFileDropList() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

14 Examples 7

1. Example

Project: ACDDokanNet
Source File: ContextMenu.cs
private void UploadHere(object sender, EventArgs e)
        {
            var files = new CloudDokanNetUploadHereInfo
            {
                Files = Clipboard.GetFileDropList().Cast<string>().ToList()
            };
            var path = SelectedItemPaths.Single();
            Common.WriteObject(files, path, CloudDokanNetUploadHereInfo.StreamName);
        }

2. Example

Project: QTTabBar
Source File: DropDownMenuDropTarget.cs
private void PasteFiles() {
            string path = null;
            if(fKeyTargetIsThis) {
     /n ..... /n //View Source file for more details /n }

3. Example

Project: PowerPointLabs
Source File: PictureSlidesLabWindowViewModel.cs
private static IList<object> LoadClipboardPicture()
        {
            try
            {
                Logger.Log("Load clipboard begins.");
                var result = new List<object>();
                if (Clipboard.ContainsImage())
                {
                    result.Add(Clipboard.GetImage());
                }
                if (Clipboard.ContainsFileDropList())
                {
                    result.Add(Clipboard.GetFileDropList());
                }
                if (Clipboard.ContainsText())
                {
                    result.Add(Clipboard.GetText());
                }
                Logger.Log("Load clipboard done.");
                return result;
            }
            catch (Exception e)
            {
                // sometimes Clipboard may fail
                Logger.LogException(e, "LoadClipboardPicture");
                return new List<object>();
            }
        }

4. Example

Project: Toxy
Source File: ClipboardContentViewer.cs
private void ClipboardContentViewer_Load(object sender, EventArgs e)
        {
            pbClipboa/n ..... /n //View Source file for more details /n }

5. Example

Project: upScreen
Source File: CaptureControl.cs
public static void GetFromClipboard()
        {
            Image image = null;

            // Load the image from a copied image
            if (Clipboard.ContainsImage())
            {
                Log.Write(l.Info, "Clipboard mode, copied image");
                image = Clipboard.GetImage();
            }
            // Load the image from a copied image file
            else if (Clipboard.ContainsFileDropList())
            {
                Log.Write(l.Info, "Clipboard mode, file list");
                foreach (var localFile in Clipboard.GetFileDropList())
                {
                    SaveImage(localFile);
                }
                // raise CaptureComplete to start uploading
                CaptureComplete(null, EventArgs.Empty);
            }
            // Load the image from a copied image url
            else if (Common.ImageUrlInClipboard)
            {
                var url = Clipboard.GetText();
                Log.Write(l.Info, $"Clipboard mode, url: {url}");
                image = GetFromUrl(url);
            }

            // Prevent null reference exception
            if (image == null) return;

            Common.OtherFormOpen = true;

            SaveImage(image);
        }

6. Example

Project: ShareX
Source File: ClipboardContentViewer.cs
private bool CheckClipboardContents()
        {
            pbClipboard.Visible = txtClipboard.Visib/n ..... /n //View Source file for more details /n }

7. Example

Project: BitChatClient
Source File: ChatMessageView.cs
private void txtMessage_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.Control)
/n ..... /n //View Source file for more details /n }

8. Example

Project: BitChatClient
Source File: ChatMessageView.cs
private void txtMessage_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.Control)
/n ..... /n //View Source file for more details /n }

9. Example

Project: ShareX
Source File: ClipboardContentViewer.cs
private void ClipboardContentViewer_Load(object sender, EventArgs e)
        {
            pbClipboa/n ..... /n //View Source file for more details /n }

10. Example

Project: PowerPointLabs
Source File: PictureSlidesLabWindow.xaml.cs
private void HandlePastedPicture(bool isUsingWinformMsgBox = false)
        {
            try
      /n ..... /n //View Source file for more details /n }

11. Example

Project: Pscx
Source File: GetClipboardCommand.cs
void GetClipboardContents()
        {
            if (_image)
            {
                if (WinF/n ..... /n //View Source file for more details /n }

12. Example

Project: KeeThief
Source File: ClipboardUtil.cs
public static byte[] ComputeHash()
		{
			try // This works always or never
			{
				bool bOpened = /n ..... /n //View Source file for more details /n }

13. Example

Project: ShareX
Source File: UploadManager.cs
public static void ClipboardUpload(TaskSettings taskSettings = null)
        {
            if (taskS/n ..... /n //View Source file for more details /n }

14. Example

Project: ShareX
Source File: UploadManager.cs
public static void ClipboardUpload(TaskSettings taskSettings = null)
        {
            if (taskS/n ..... /n //View Source file for more details /n }