I am trying to get the height of a document in a web browser control.
At the moment i’m using the code below but it always returns 622 and i know my documents are all different sizes.
private void webCompareSQL_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
HtmlDocument htmldoc = webCompareSQL.Document;
int ScrollHight = htmldoc.Window.Position.Y;
}
Can someone please show me the right way to do this?
Try this
OR
OR
For 3rd case result is the height of the WebBrowser view window + borders.
Edited: