[Solved] how to edit html using the webbrowser control? (turn on WYSIWYG features) [closed]


The WebBrowser control has a built-in WYSIWYG mini-HTML editor. You can use it.
Here’s an example to how to turn that edit mode on:

Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
    ' I do this for this example, so that we have some elements loaded. 
    ' For you, you will need to add the tags from your code for various HTML elements.
    WebBrowser1.Navigate("http://google.com")
End Sub

Private Sub WebBrowser1_DocumentCompleted(sender As System.Object, e As WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted
    ' To turn On the edit mode.
    Dim axObj As New Object
    axObj = WebBrowser1.ActiveXInstance
    axObj.document.designmode = "On"
End Sub

3

solved how to edit html using the webbrowser control? (turn on WYSIWYG features) [closed]