title: SetText of textbox in external app. Win32 API
body: <p>Using Winspector I've found out the ID of the child textbox I want to change is 114. Why isn't this code changing the text of the TextBox?</p>
  
  <pre><code>    [DllImport("user32.dll")]
      static extern IntPtr GetDlgItem(IntPtr hDlg, int nIDDlgItem);
      [DllImport("user32.dll")]
      public static extern int SendMessage(IntPtr hWnd, int msg, int Param, string s);
  
      const int WM_SETTEXT = 0x000c;
  
      private void SetTextt(IntPtr hWnd, string text)
      {
          IntPtr boxHwnd = GetDlgItem(hWnd, 114);
          SendMessage(boxHwnd, WM_SETTEXT, 0, text);
      }
  </code></pre>