当前位置:编程学习 > VB >>

VB里怎么在webbrowse上显示存储在变量里的HTML代码?

比如变量S存有代码 

s="<img src="&chr(34)&"http://chenzhimao.com/ocarina/(7).png"&chr(34)&"/>"

怎么在webbrowse上以页面的形式把S变量的内容显示出来。 --------------------编程问答-------------------- webbrowser1.document.write s --------------------编程问答--------------------
s = Replace(s, "<", "<")
s = Replace(s, ">", ">")
WebBrowser1.Document.write s
--------------------编程问答-------------------- 需要其他设置吗 我在这里显示 错误91 对象变量或with块变量未设置 

s是定义过的 --------------------编程问答-------------------- form_load中先执行:
WebBrowser1.navigate "about:blank" --------------------编程问答-------------------- OK 可以了 谢谢哈  --------------------编程问答--------------------
引用 5 楼 csjcsj1234 的回复:
OK 可以了 谢谢哈









论坛签名======================================================================

当您的问题得到解答后请及时结贴.
http://topic.csdn.net/u/20090501/15/7548d251-aec2-4975-a9bf-ca09a5551ba5.html
http://topic.csdn.net/u/20100428/09/BC9E0908-F250-42A6-8765-B50A82FE186A.html
http://topic.csdn.net/u/20100626/09/f35a4763-4b59-49c3-8061-d48fdbc29561.html

如何给分和结贴?
http://community.csdn.net/Help/HelpCenter.htm#结帖

如何给自己的回帖中也加上签名?
http://blog.csdn.net/q107770540/archive/2011/03/15/6250007.aspx
补充:VB ,  控件
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,