how to dynamically generate HTML code using .NET's WebBrowser or mshtml.HTMLDocument?
问题 Most of the answers I have read concerning this subject point to either the System.Windows.Forms.WebBrowser class or the COM interface mshtml.HTMLDocument from the Microsoft HTML Object Library assembly. The WebBrowser class did not lead me anywhere. The following code fails to retrieve the HTML code as rendered by my web browser: [STAThread] public static void Main() { WebBrowser wb = new WebBrowser(); wb.Navigate(\"https://www.google.com/#q=where+am+i\"); wb.DocumentCompleted += delegate