title: Help with active form
body: <p>I am writting a program in vb.net that uses the systray and what I am trying to achieve is the following.</p>
  
  <p>If the systray icon is clicked it should minimise/restore the form. (this I can do)
  the bit I am stuck on is that if the form is 'open' and not focused I want it to get focus rather than minimise. </p>
  
  <p>I can't seem to find anything that does the test I need to see if the form is not in a minimised state and does not have focus.</p>
  
  <p>Any suggestions welcome.</p>
  
  <p>Thanks</p>