title: Capture webBrowser control response
body: <p>I am using the webbrowser control in C# for our desktop application to run a credit card through a gateway.</p>
  
  <p>Simply, I'm loading the page on the load of the form:</p>
  
  <pre><code>public Form1()
  {
    InitializeComponent();
  
    webBrowser1.Url = new Uri("https://paymentgateway.com/hosted.aspx?" +
                              "Username=dddd" +
                              "&amp;Password=dddd" +
                              "&amp;MerchantKey=5159" +
                              "&amp;BillingAddress1=123 some street" +
                              "&amp;BillingCity=Somewhere" +
                              "&amp;BillingState=SC" +
                              "&amp;BillingZip=39399" +
                              "&amp;CustomerName=me" +
                              "&amp;Amount=392.00" +
                              "&amp;InvNum=123567" +
                              "&amp;AccountNumber=0133333" +
                              "&amp;CustomerId=0199999");
  
  
  }
  </code></pre>
  
  <p>(all references changed for security reasons)</p>
  
  <p>The page looks something like this:</p>
  
  <p><img src="https://i.stack.imgur.com/A1Kha.png" alt="Portal"></p>
  
  <p>My question is, <strong>how do I grab the response once the Process button has been clicked</strong> and then close out the form?  I need to know if it was approved and the rest of the information from that point.</p>
  
  <p>I don't have control over the button so I'm not sure how to capture the response.</p>
  
  <p>Thanks again!</p>