title: From HWND to control
body: <p>Im using the FindWindow method from user32.dll to find a window and get the handle, but is it possible to get the form control from the handle? and the use it like an ordinary form? Example:</p>
  
  <pre><code>int myhwnd = FindWindow(null, "MyWindow");
  form myform = SomeMagic.GetFormFromHandle(myhwnd);
  myform.Visible = false;
  </code></pre>
  
  <p>or do I have to continue to use the methods in user32.dll to send a message to the window?</p>