title: Web browser control open up the next page in IE on invoking form submit method
body: <p>I am trying to create auto form submit application. I need to subscribe on different sites. It involves submitting two forms. I am using .Net web browser control. When i fill the first form and call submit method of the form or click method of the button, both opens up the next page in IE. ( In window browser the first form opens the next form in new tab on hitting submit button)</p>
  
  <pre><code>HtmlElementCollection inputs = form.GetElementsByTagName("input");
  foreach (HtmlElement input in inputs)
  {
         if (input.GetAttribute("type") == "text")
         {
              inputname = input.GetAttribute("name");
              input.SetAttribute("value", email);
         }
  
          else if (input.GetAttribute("type") == "submit")
          {
               //input.InvokeMember("click");
               form.InvokeMember("submit");
               break;
           }
   }
  </code></pre>
  
  <p>So the issue is it does't open the next form in the control rather opening it up in IE. How can i make it so it opens the next form within the control.</p>
  
  <p>Any help would be appreciated. Thanks</p>