title: Click button in WebBrowser control vb.net
body: <p>I am trying to click the button highlighted in picture below. The code is from a web page:</p>
  
  <p><a href="https://i.stack.imgur.com/nzPTY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nzPTY.png" alt="enter image description here"></a></p>
  
  <p>I'm not to sure, but I believe the button is within an iFrame.</p>
  
  <p>I have tried:</p>
  
  <pre><code>Dim wrapClick As HtmlElement = Contact.WebBrowser1.Document.GetElementById("Btn_WrapUp")
  wrapClick.InvokeMember("Click")
  </code></pre>
  
  <p>And:</p>
  
  <pre><code>Dim elPoint As New Point(704, 340)
  Dim wrapClick As HtmlElement = Contact.WebBrowser1.Document.GetElementFromPoint(elPoint)
  wrapClick.InvokeMember("onClick")
  </code></pre>
  
  <p>And:</p>
  
  <pre><code>Contact.WebBrowser1.Document.GetElementById("Btn_WrapUp").InvokeMember("Click")
  </code></pre>
  
  <p>In all of the above, I have tried 'onClick' and 'Click'.</p>
  
  <p>WebBrowser1 is on a different form.</p>
  
  <p>Thanks!</p>