Beispiel #1
0
        private void DragDropImage(string url)
        {
            string filename = url.Split('/').Last();
            string path     = Path.Combine(Path.GetTempPath(), filename);

            var webClient = new WebClient();

            webClient.DownloadFile(url, path);

            var paths = new[] { path };

            scintilla1.DoDragDrop(new DataObject(DataFormats.FileDrop, paths), DragDropEffects.Copy);
        }