title: RegisterHotKey not working with invisible forms (c#)
body: <p>I'm trying to put an icon in the system tray and then give it a global keyboard shortcut to carry out a function.</p>
  
  <p>I'm using RegisterHotKey to set the global keyboard shortcut, and it works if the main form associated with the icon is visible.  But if the form is invisible then the WndProc method is never invoked.</p>
  
  <p>Any ideas?</p>
  
  <p>Edit:
  What I mean by "hidden" is that the following is added to the main form:</p>
  
  <pre><code>protected override void OnLoad(EventArgs e)
  {
      hotKey = new GlobalHotkey(GlobalHotkey.WIN, Keys.T, this);
      bool registered = hotKey.Register();
      Visible = false;
      ShowInTaskbar = false;
      base.OnLoad(e);
  }
  </code></pre>
  
  <p>"registered" is showing as "true", and the shortcut key works fine if I leave out the "Visible = false;" and the "ShowInTaskbar = false;".</p>