Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/281.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# C Windows窗体-拖放到外部web浏览器(Firefox)中_C#_Windows_Forms_Firefox_Drag And Drop - Fatal编程技术网

C# C Windows窗体-拖放到外部web浏览器(Firefox)中

C# C Windows窗体-拖放到外部web浏览器(Firefox)中,c#,windows,forms,firefox,drag-and-drop,C#,Windows,Forms,Firefox,Drag And Drop,我有一个带有包含URL的标签的Windows窗体。我想把这个标签拖到Firefox中,然后用这个URL打开一个新标签。如何做到这一点?单击标签时必须开始拖动,将文本设置为要拖动的对象 private void label1_Click(object sender, EventArgs e) { DoDragDrop(this.label1.Text, DragDropEffects.Copy); } 如果在Firefox中删除文本,它将加载到当前选项卡。

我有一个带有包含URL的标签的Windows窗体。我想把这个标签拖到Firefox中,然后用这个URL打开一个新标签。如何做到这一点?

单击标签时必须开始拖动,将文本设置为要拖动的对象

    private void label1_Click(object sender, EventArgs e)
    {
        DoDragDrop(this.label1.Text, DragDropEffects.Copy);
    }
如果在Firefox中删除文本,它将加载到当前选项卡。查看Firefox配置,看看是否可以让它在drop上打开一个新选项卡