• <i id='K2nn6'><tr id='K2nn6'><dt id='K2nn6'><q id='K2nn6'><span id='K2nn6'><b id='K2nn6'><form id='K2nn6'><ins id='K2nn6'></ins><ul id='K2nn6'></ul><sub id='K2nn6'></sub></form><legend id='K2nn6'></legend><bdo id='K2nn6'><pre id='K2nn6'><center id='K2nn6'></center></pre></bdo></b><th id='K2nn6'></th></span></q></dt></tr></i><div id='K2nn6'><tfoot id='K2nn6'></tfoot><dl id='K2nn6'><fieldset id='K2nn6'></fieldset></dl></div>
    <tfoot id='K2nn6'></tfoot><legend id='K2nn6'><style id='K2nn6'><dir id='K2nn6'><q id='K2nn6'></q></dir></style></legend>

    <small id='K2nn6'></small><noframes id='K2nn6'>

      <bdo id='K2nn6'></bdo><ul id='K2nn6'></ul>

        将 Drop 从 .NET 应用程序拖放到资源管理器

        时间:2023-08-25
        <tfoot id='Rbb2n'></tfoot>

          <bdo id='Rbb2n'></bdo><ul id='Rbb2n'></ul>

          <small id='Rbb2n'></small><noframes id='Rbb2n'>

              <tbody id='Rbb2n'></tbody>

          1. <legend id='Rbb2n'><style id='Rbb2n'><dir id='Rbb2n'><q id='Rbb2n'></q></dir></style></legend>

                  <i id='Rbb2n'><tr id='Rbb2n'><dt id='Rbb2n'><q id='Rbb2n'><span id='Rbb2n'><b id='Rbb2n'><form id='Rbb2n'><ins id='Rbb2n'></ins><ul id='Rbb2n'></ul><sub id='Rbb2n'></sub></form><legend id='Rbb2n'></legend><bdo id='Rbb2n'><pre id='Rbb2n'><center id='Rbb2n'></center></pre></bdo></b><th id='Rbb2n'></th></span></q></dt></tr></i><div id='Rbb2n'><tfoot id='Rbb2n'></tfoot><dl id='Rbb2n'><fieldset id='Rbb2n'></fieldset></dl></div>
                  本文介绍了将 Drop 从 .NET 应用程序拖放到资源管理器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我希望用户能够将文件从我的应用程序中的网格和其他控件拖放到资源管理器中.有什么好的示例/文章吗?

                  I'm looking to provide users with ability to drag&drop files from grids and other controls in my application into Explorer. Any good samples/articles for that?

                  推荐答案

                  非常简单,只需在 MouseDown 事件中调用 DoDragDrop 即可.您需要磁盘上的实际文件才能正常工作.

                  It's pretty straight-forward, just call DoDragDrop in a MouseDown event. You'll need actual files on disk for this to work.

                  private void Form1_MouseDown(object sender, MouseEventArgs e) { 
                     string[] files = new string[] { @"c:	emp	est.txt" };
                     this.DoDragDrop(new DataObject(DataFormats.FileDrop, files), DragDropEffects.Copy); 
                  }
                  

                  这篇关于将 Drop 从 .NET 应用程序拖放到资源管理器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:将文件拖放到 WPF 中 下一篇:如何将 DataGridView 行拖放到彼此下方?

                  相关文章

                  最新文章

                • <tfoot id='mTdr7'></tfoot>
                  <legend id='mTdr7'><style id='mTdr7'><dir id='mTdr7'><q id='mTdr7'></q></dir></style></legend>

                  <i id='mTdr7'><tr id='mTdr7'><dt id='mTdr7'><q id='mTdr7'><span id='mTdr7'><b id='mTdr7'><form id='mTdr7'><ins id='mTdr7'></ins><ul id='mTdr7'></ul><sub id='mTdr7'></sub></form><legend id='mTdr7'></legend><bdo id='mTdr7'><pre id='mTdr7'><center id='mTdr7'></center></pre></bdo></b><th id='mTdr7'></th></span></q></dt></tr></i><div id='mTdr7'><tfoot id='mTdr7'></tfoot><dl id='mTdr7'><fieldset id='mTdr7'></fieldset></dl></div>

                  <small id='mTdr7'></small><noframes id='mTdr7'>

                    <bdo id='mTdr7'></bdo><ul id='mTdr7'></ul>