Here are the examples of the csharp api class System.Windows.Forms.Clipboard.ContainsFileDropList() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
14 Examples
0
1. Example
View licensepublic void OnButtonClick() { bool fFilesInClipboard = false; try { fFilesInClipboard = Clipboard.ContainsFileDropList(); } catch { } if(fFilesInClipboard) FileOps.FileOperation(FileOpActions.Paste, pluginServer.ExplorerHandle, null); else SystemSounds.Beep.Play(); }
0
2. Example
View licenseprivate 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>(); } }
0
3. Example
View licenseprotected override ContextMenuStrip CreateMenu() { // Create the menu strip. /n ..... /n //View Source file for more details /n }
0
4. Example
View licenseprivate void ClipboardContentViewer_Load(object sender, EventArgs e) { pbClipboa/n ..... /n //View Source file for more details /n }
0
5. Example
View licensepublic 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); }
0
6. Example
View licenseprivate bool CheckClipboardContents() { pbClipboard.Visible = txtClipboard.Visib/n ..... /n //View Source file for more details /n }
0
7. Example
View licenseprivate void txtMessage_KeyDown(object sender, KeyEventArgs e) { if (e.Control) /n ..... /n //View Source file for more details /n }
0
8. Example
View licenseprivate void txtMessage_KeyDown(object sender, KeyEventArgs e) { if (e.Control) /n ..... /n //View Source file for more details /n }
0
9. Example
View licenseprivate void ClipboardContentViewer_Load(object sender, EventArgs e) { pbClipboa/n ..... /n //View Source file for more details /n }
0
10. Example
View licenseprivate void mnuMainOpenImageData_Click(object sender, EventArgs e) { //Is there/n ..... /n //View Source file for more details /n }
0
11. Example
View licensevoid GetClipboardContents() { if (_image) { if (WinF/n ..... /n //View Source file for more details /n }
0
12. Example
View licensepublic static byte[] ComputeHash() { try // This works always or never { bool bOpened = /n ..... /n //View Source file for more details /n }
0
13. Example
View licensepublic static void ClipboardUpload(TaskSettings taskSettings = null) { if (taskS/n ..... /n //View Source file for more details /n }
0
14. Example
View licensepublic static void ClipboardUpload(TaskSettings taskSettings = null) { if (taskS/n ..... /n //View Source file for more details /n }