title: How to set the height of a window using c#?
body: <p>Is it possible to set the height of a window using the window handle or process handle?</p>
  
  <p>I have the following so far, assume the application in question is notepad.</p>
  
  <pre><code>Process[] processes = Process.GetProcessesByName("notepad");
  
  foreach (Process p in processes)
  {
  
      if (p.MainWindowTitle == title)
      {
  
          handle = p.MainWindowHandle;
  
          while ((handle = p.MainWindowHandle) == IntPtr.Zero)
          {
              Thread.Sleep(1000);
              p.Refresh();
          }
  
          break;
      }
  
  }
  </code></pre>
  
  <p>Can I make use of <code>handle</code> or <code>p</code> to set the height of the window?</p>