Hello:
I have a problem with the images.
With Url pictures look good.
But with "Document text" I do not see the images.
Someone can help me.
thanks
PepSoft
There are a couple of problems with your code.
The most important one is that you are not referencing a filepath for imagtest1.jpg
That means the browser doesn't know where to get the image.
If you load a html file, the webbrowser automatically assumes the files in the document are located in the same folder as the document if there's only the filename.
When you replace the DocumentText with a string, the webbrowser doesn't have any information about locations of files.
The easiest solution is to simply enter the full filepath in the Textbox.
For Example "file://C:/.../imagtest1.jpg"
You could also save the Textbox text to a temporary html file and have the browser load that file instead of the text directly.
But you can also add the filepath to the textbox text.
I added an example of the last method.
I also noted that the ' " ' are lost in the Textbox when the text is entered in the Form Designer in the IDE.