title: get page width and height in virtual webbrowser
body: <p>I am trying to get the width and height of the uploaded html file. This is what i have done so far.</p>
  
  <pre><code>WebBrowser wb = new WebBrowser();
  int ht,wd;
  wb.Navigate("D:\\page1.HTM");
  ht = wb.Height;
  wd = wb.Width;
  </code></pre>
  
  <p>But the above code always return me the wrong size of the page.</p>
  
  <p>Can anyone help me to get the exact page size in the c# environment?</p>
  
  <p><strong>FYI:</strong> For those whose marked this question a <strong>duplicate</strong>, Please consider that the original question(as per your point of view), The webbrowser tool is implement in the form but in my case, I am <strong><em>not going to implement it</em></strong>. I am just going to use it. I hope the first line of code denotes that.</p>