title: How to control iTunes through winForms
body: <p>I can see a similar question that has been answered here (<a href="https://stackoverflow.com/questions/15872600/how-would-i-play-a-specific-song-in-itunes-through-java">How would i play a specific song in iTunes through java?</a>) but it doesn't really answer my question (I don't think, anyway).</p>
  
  <p>I have a couple of buttons on a winform (play, pause, skip forward, skip back) and want to be able to connect these through iTunes, so as to create a 'mini media player'.</p>
  
  <p>However, I am having issues (obviously, or I wouldn't be writing this :P) with all this 'COM' malarkey. I have tried including (nearly) all the possible references from 'Apple', 'iTunes' and still can't seem to be able to find a way of pressing the button 'play' and actually playing a song in iTunes. </p>
  
  <p>I have a button on click event (i've called the button <code>btnPlay</code>). But does anyone know the 'correct' or 'efficient' way of connecting iTunes to winforms?</p>
  
  <p>I've heard about something called <code>sendKeys</code>, but I'm a total noob and have really no idea of how to create this sort of thing. </p>
  
  <p>PS. I've also tried to find a refence for <code>using iTunesLib;</code> (from <a href="http://blogs.msdn.com/b/noahc/archive/2006/07/06/automating-itunes-with-c-in-net.aspx" rel="nofollow noreferrer">http://blogs.msdn.com/b/noahc/archive/2006/07/06/automating-itunes-with-c-in-net.aspx</a>) but this is a dated post, and i'm not certain this namespace is available anymore (well, I can't find it anywhere in the <code>Com references</code> anyway.</p>
  
  <p>As always, any help much appreciated.</p>