📜  如何在 C# 中的 Web 浏览器中加载 html 代码 vs - Html 代码示例

📅  最后修改于: 2022-03-11 14:53:21.437000             🧑  作者: Mango

代码示例3
//Create the WebBrowser control
WebBrowser wb = new WebBrowser();
//Add a new event to process document when download is completed   
wb.DocumentCompleted +=
    new WebBrowserDocumentCompletedEventHandler(DisplayText);
//Download the webpage
wb.Url = urlPath;