Home > Software engineering >  VB development of the simulation of the mass blog tool problems
VB development of the simulation of the mass blog tool problems

Time:10-17

I met problem to submit the blog content form in time, because some blog form, rather than the input source, can be directly paste HTML content, such as HTML source code for I love you & lt; A href="http://bbs.csdn.net/topics/330093083" & gt; Beauty & lt;/a> You are beautiful!
This is the outcome of the form of direct assignment I love you & lt; A href="http://bbs.csdn.net/topics/330093083" & gt; Beauty & lt;/a> Hello beautiful, not I want that I love you beauty hello beautiful,
My way is the soil, increasing in a vb webbrowser control, then put this piece of source code using the
WebBrowser2. Document. Write "I love you & lt; A href="http://bbs.csdn.net/topics/330093083" & gt; Beauty & lt;/a> Hello beautiful "

WebBrowser2. Document. Body. Focus
WebBrowser2. Document. ExecCommand "SelectAll
"The Clipboard. The Clear

WebBrowser2. Document. ExecCommand "copy"
Inside a clipboard such is the effect I said, and then paste to the form of blog content,
The problem is my top way very soil is very bad, is there a better way!
Solve!
  • Related