title: WebBrowser Control Get Post Data
body: <p>I am displaying a specific webpage on a browser control and not allowing them to browse to any other page.</p>
  
  <p>When the user clicks the submit button to go to the next page I need to grab the post data and then display the page.</p>
  
  <p>I've not used the browser control before so I need to get this information then display the page.</p>
  
  <p>My web page is displaying without any problems but I'm not sure how to grab the post data after they click submit.</p>
  
  <p>Here is my form so far...</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.ComponentModel;
  using System.Data;
  using System.Drawing;
  using System.Linq;
  using System.Text;
  using System.Windows.Forms;
  
  namespace ssscc
  {
    public partial class GatewayNavigation : Form
    {
      public Size WindowSize { set; get; }
  
      public GatewayNavigation()
      {
        InitializeComponent();
        InitializeEvents();
        Size = GatewayNavigationFormSettings.FormSize;
      }
  
      private void InitializeEvents()
      {
        Load += GatewayNavigationLoad;
        webBrowser_Gateway.DocumentCompleted += WebBrowserGatewayDocumentCompleted;
        webBrowser_Gateway.ProgressChanged += WebBrowserGatewayProgressChanged;
      }
  
      void WebBrowserGatewayProgressChanged(object sender, WebBrowserProgressChangedEventArgs e)
      {
        if (e.MaximumProgress &gt; 0)
        {
          int prog = (int)(100 * e.CurrentProgress / e.MaximumProgress);
          if (prog &gt; 99)
          {
            prog = 100;
          }
          progressBar1.Value = prog;
        }
      }
  
      void WebBrowserGatewayDocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
      {
        progressBar1.Visible = false;
      }
  
      private void GatewayNavigationLoad(object sender, EventArgs e)
      {
        webBrowser_Gateway.AllowNavigation = false;
        webBrowser_Gateway.AllowWebBrowserDrop = false;
        webBrowser_Gateway.Navigate(UrlBuild.FullUrl);
      }
    }
  }
  </code></pre>
  
  <p>Anyone have any suggestions?</p>