<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>张筱祥博客 &#187; C#操作webBrowser</title>
	<atom:link href="http://www.zxxblog.com/tag/c%e6%93%8d%e4%bd%9cwebbrowser/feed" rel="self" type="application/rss+xml" />
	<link>http://www.zxxblog.com</link>
	<description>专注于网络辅助工具的开发</description>
	<lastBuildDate>Sun, 13 Mar 2011 09:16:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>C# 在 webBrowser 光标处插入 html代码</title>
		<link>http://www.zxxblog.com/943</link>
		<comments>http://www.zxxblog.com/943#comments</comments>
		<pubDate>Mon, 06 Dec 2010 07:06:00 +0000</pubDate>
		<dc:creator>张筱祥</dc:creator>
				<category><![CDATA[资料收集]]></category>
		<category><![CDATA[C#操作webBrowser]]></category>
		<category><![CDATA[光标]]></category>
		<category><![CDATA[张筱祥]]></category>

		<guid isPermaLink="false">http://www.zxxblog.com/943</guid>
		<description><![CDATA[1。首先引用 Microsoft.mshtml; 2. 写代码 private void BtnInsertMedia_Click(object sender, EventArgs e) { InWord frm = new InWord(&#34;请填入视频地址（后缀必须是.swf）：&#34;); frm.ShowDialog(); if (frm.Value != null &#38;&#38; frm.Value != &#34;&#34;) { IHTMLDocument2 doc = (IHTMLDocument2)this.webBrowser1.Document.DomDocument; IHTMLTxtRange range = doc.selection.createRange() as IHTMLTxtRange; range.pasteHTML(range.text + @&#34;&#60;br \&#62;&#60;embed wmode=&#34;&#34;transparent&#34;&#34; src=&#34;&#34;&#34; + frm.Value + @&#34;&#34;&#34; quality=&#34;&#34;high&#34;&#34; width=&#34;&#34;480&#34;&#34; height=&#34;&#34;400&#34;&#34; align=&#34;&#34;middle&#34;&#34; allow script Access=&#34;&#34;always&#34;&#34; allowfullscreen=&#34;&#34;true&#34;&#34; type=&#34;&#34;application/x-shockwave-flash&#34;&#34;&#62;&#60;/embed&#62;&#60;br [...]]]></description>
		<wfw:commentRss>http://www.zxxblog.com/943/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C# WebBrower1控件提示&#8220;该文档已被修改，是否保存修改结果&#8221;解决方法</title>
		<link>http://www.zxxblog.com/936</link>
		<comments>http://www.zxxblog.com/936#comments</comments>
		<pubDate>Tue, 02 Nov 2010 05:55:00 +0000</pubDate>
		<dc:creator>张筱祥</dc:creator>
				<category><![CDATA[资料收集]]></category>
		<category><![CDATA[C#操作webBrowser]]></category>
		<category><![CDATA[张筱祥]]></category>
		<category><![CDATA[该文档已被修改]]></category>

		<guid isPermaLink="false">http://www.zxxblog.com/936</guid>
		<description><![CDATA[&#160; C# WebBrower1控件可编辑模式保存时会提示“该文档已被修改，是否保存修改结果” 在百度查了不少方法，张筱祥发现一个比较实用而且非常简单的方法，代码如下： 在WebBrower1的Navigating 事件中加以下代码就没有提示了。 &#160;&#160;&#160;&#160;&#160;&#160; private void webBrowser1_Navigating(object sender, WebBrowserNavigatingEventArgs e) &#160;&#160;&#160;&#160;&#160;&#160; { &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; webBrowser1.Document.Write(&#34;&#60;script&#62;functionshowModalDialog{return;}&#60;/script&#62;&#34;); &#160;&#160;&#160;&#160;&#160;&#160; } ok，问题完美解决，不再弹窗那个让人讨厌的对话框了。]]></description>
		<wfw:commentRss>http://www.zxxblog.com/936/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C#中设置webBrowser为可编辑模式</title>
		<link>http://www.zxxblog.com/838</link>
		<comments>http://www.zxxblog.com/838#comments</comments>
		<pubDate>Sat, 06 Feb 2010 13:35:43 +0000</pubDate>
		<dc:creator>张筱祥</dc:creator>
				<category><![CDATA[资料收集]]></category>
		<category><![CDATA[C#操作webBrowser]]></category>

		<guid isPermaLink="false">http://www.zxxblog.com/838</guid>
		<description><![CDATA[在网上找了点资料，自己测试了一下，发现C#操作webBrowser也不是很难。这里写几句简单的记录。 首先在from_load事件中添加以下代码：&#160;&#160; &#160;&#160; webBrowser1.DocumentText = string.Empty; &#160;&#160; webBrowser1.Document.ExecCommand(&#34;EditMode&#34;, false, null); &#160;&#160; webBrowser1.Document.ExecCommand(&#34;LiveResize&#34;, false, null); &#160;&#160; webBrowser1.DocumentText = @&#34;现在&#34;; 然后webBrowser1里面内容就可以编辑了 其中如果需要得到webBrowser1中的内容可以使用： webBrowser1.Document.Body.InnerText 和 webBrowser1.Document.Body.InnerHtml 从字面意思上可以看出是分别获取webBrowser1的文本形式内容和html形式内容。]]></description>
		<wfw:commentRss>http://www.zxxblog.com/838/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

