Click here to Skip to main content
15,891,473 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
C#
private mshtml.IHTMLDocument2 docs;
docs = (mshtml.IHTMLDocument2)this.webBrowser1.Document.DomDocument;
            docs.designMode =On;
            docs.write("");
            docs.close();
docs.writeln("<img src=\"http://www.devlounge.net/wp-content/uploads/2009/08/codeproject.jpg\" alt=\"right\" align=\"right\" title=\"right\">");


Picture is not dispalayed
Posted
Updated 29-Feb-12 7:59am
v2

1 solution

You close the document and write something else below. Close should be the last statement.
The line with the element img is correct, I tested it.

A side note: using the attribute "align" is not so good; better use CSS.

—SA
 
Share this answer
 
Comments
[no name] 1-Mar-12 3:25am    
i dont need css, javascrip and other. I simply want displayed image on Webbrowser.
[no name] 1-Mar-12 3:27am    
docs.writeln("<img src=\"http://www.devlounge.net/wp-content/uploads/2009/08/codeproject.jpg\">");
this is not worked too...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900