title: Copy and Paste from excel to windows form
body: <p>I have made use of the <code>_KeyDown</code> function in my windows form:</p>
  
  <pre><code>if ((e.KeyCode == Keys.V) &amp;&amp; (e.Modifiers == Keys.Control))
  {
      // do stuff
  }
  </code></pre>
  
  <p>and then have used to get the copied data:</p>
  
  <pre><code> string[] clipboardRows = Clipboard.GetText(TextDataFormat.UnicodeText).Split(new string[] {"\r\n"},
                                                                                                   StringSplitOptions.None);
  </code></pre>
  
  <p>This works fine, however when you select say selected cells from a spreadsheet it ends up copying all cells in between for example:</p>
  
  <pre><code>1.Test
  2.Test2
  3.Test3
  4.Test4
  </code></pre>
  
  <p>If i select both <code>test</code> and <code>test 4</code> using <kbd>ctrl</kbd> and then copying by pressing <kbd>C</kbd>, when pressing <kbd>ctrl</kbd> + <kbd>v</kbd> and stepping through it gets all in between so <code>test2</code> and <code>test3</code>.</p>
  
  <p>How do i resolve this?</p>