How to dynamically change the height of the webBrowser?

How to adjust the height of the webBrowser relevant content in it?
Yes, I am aware that it is possible to enable scrolling, but no need for that -__-
July 9th 19 at 12:47
1 answer
July 9th 19 at 12:49
Solution
private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventargs e)
{
 this.Width = webBrowser1.Document.Body.ScrollRectangle.Width;
 this.Height = webBrowser1.Document.Body.ScrollRectangle.Height;
 }
Not working.
Maybe I don't understand something, but why You've changed the size of the form (this.The Height of this.Width), when I had to resize the webBrowser? - karine.Konopelski commented on July 9th 19 at 12:52
Understood. Instead of this put the name from the webBrowser - karine.Konopelski commented on July 9th 19 at 12:55
all the same, better change is the size of the form (or container), and put Dock the webBrowser to Fill in - Kylee.Smitham23 commented on July 9th 19 at 12:58

Find more questions by tags C#