Getting HTML body content in WinForms WebBrowser after body onload event executes
问题 I have a WebBrowser control in WinForms whose URL property is set to an external webpage. I also have an event handler for the DocumentCompleted event. Inside this handler, I\'m trying to get specific elements, but wb.Document.Body seems to capture the HTML before onload is executed. {System.Windows.Forms.HtmlElement} All: {System.Windows.Forms.HtmlElementCollection} CanHaveChildren: true Children: {System.Windows.Forms.HtmlElementCollection} ClientRectangle: {X = 0 Y = 0 Width = 1200 Height