title: C# drag and drop files to form
body: <p>How could I load files to a form by drag-and-drop? </p>
  
  <p>Which event will appear?</p>
  
  <p>Which component should I use?</p>
  
  <p>And how to determine name of file and others properties after drag-and-dropping it to a form?</p>
  
  <p>Thank you!</p>
  
  <p>Code </p>
  
  <pre><code>   private void panel1_DragEnter(object sender, DragEventsArgs e){
          if (e.Data.GetDataPresent(DataFormats.Text)){
                e.Effect = DragDropEffects.Move;
                MessageBox.Show(e.Data.GetData(DataFormats.Text).toString());
          }
          if (e.Data.GetDataPresent(DataFormats.FileDrop)){
  
          }
     }
  </code></pre>
  
  <p>ok, this works.</p>
  
  <p>How about files? How can I get filename and extension? </p>
  
  <p>and this is only a <code>dragEnter</code> action.</p>