I've got a web browser control that needs to have a specific height set. If the user has a small amount of text, I want the web browser to be short. If the user types alot of text, then I need the web browser to be alot taller.
How can I find the height of the rendered text from the WebBrowser?
I saw this Getting the page height from a C# web browser control but thought there was a better way.
Update
I'm setting the text of the browser with:
webBrowser1.DocumentText = value;
After I set this value, I can check the webBrowser1.Document.Body and its null. I can also get all children of the document and none are returned.
Am I setting the correct property?