Internet Explorer 9 private void SetupEvents(){webBrowser1.Navigated += new WebBrowserNavigatedEventHandler(webBrowser1_Navigated);webBrowser1.GotFocus += new EventHandler(webBrowser1_GotFocus);webBrowser1.DocumentCompleted += new System.Windows.Forms.WebBrowserDocumentCompletedEventHandler(this.theBrowser_DocumentCompleted);} 2. Write functionprivate void theBrowser_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e){webBrowser1.Document.Write(webBrowser1.DocumentText);doc.designMode = "On";}http://www.codeproject.com/Articles/15559/A-Windows-Forms-based-text-editor-with-HTML-output?msg=3812436#xx3812436xx
Internet Explorer 9
답글삭제private void SetupEvents()
{
webBrowser1.Navigated += new WebBrowserNavigatedEventHandler(webBrowser1_Navigated);
webBrowser1.GotFocus += new EventHandler(webBrowser1_GotFocus);
webBrowser1.DocumentCompleted += new System.Windows.Forms.WebBrowserDocumentCompletedEventHandler(this.theBrowser_DocumentCompleted);
}
2. Write function
private void theBrowser_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
webBrowser1.Document.Write(webBrowser1.DocumentText);
doc.designMode = "On";
}
http://www.codeproject.com/Articles/15559/A-Windows-Forms-based-text-editor-with-HTML-output?msg=3812436#xx3812436xx