<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Setting HTML for WebBrowser in C#</title>
	<atom:link href="http://starikovs.com/2009/11/25/set-html-webbrowser-csharp/feed/" rel="self" type="application/rss+xml" />
	<link>http://starikovs.com/2009/11/25/set-html-webbrowser-csharp/</link>
	<description>BLOG</description>
	<lastBuildDate>Tue, 20 Dec 2011 11:48:53 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Mark</title>
		<link>http://starikovs.com/2009/11/25/set-html-webbrowser-csharp/comment-page-1/#comment-14138</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Thu, 15 Dec 2011 05:13:39 +0000</pubDate>
		<guid isPermaLink="false">http://starikovs.com/?p=155#comment-14138</guid>
		<description>Thanks Zeta. Solved my problem :)</description>
		<content:encoded><![CDATA[<p>Thanks Zeta. Solved my problem <img src='http://starikovs.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zeta</title>
		<link>http://starikovs.com/2009/11/25/set-html-webbrowser-csharp/comment-page-1/#comment-9586</link>
		<dc:creator>Zeta</dc:creator>
		<pubDate>Fri, 02 Sep 2011 18:29:47 +0000</pubDate>
		<guid isPermaLink="false">http://starikovs.com/?p=155#comment-9586</guid>
		<description>I learn the best way to do it:

&lt;code&gt;webBrowser1.Document.OpenNew(true); // Reset to new document, if don&#039;t do this the webBrowser1.Document.Write() just append more html without clear the previously code, and I learn (by the bad way) this duplicates attached events.
webBrowser1.Navigate(&quot;about:blank&quot;);
while (webBrowser1.Document == null &amp;&amp; webBrowser1.Document.Body == null)
Application.DoEvents(); // thanks to &#039;laurian&#039;

webBrowser1.Document.Write(this.Selected_Html);&lt;code&gt;

Greetings from Monterrey, México.</description>
		<content:encoded><![CDATA[<p>I learn the best way to do it:</p>
<p><code>webBrowser1.Document.OpenNew(true); // Reset to new document, if don't do this the webBrowser1.Document.Write() just append more html without clear the previously code, and I learn (by the bad way) this duplicates attached events.<br />
webBrowser1.Navigate("about:blank");<br />
while (webBrowser1.Document == null &amp;&amp; webBrowser1.Document.Body == null)<br />
Application.DoEvents(); // thanks to 'laurian'</p>
<p>webBrowser1.Document.Write(this.Selected_Html);</code><code></p>
<p>Greetings from Monterrey, México.</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cengiz</title>
		<link>http://starikovs.com/2009/11/25/set-html-webbrowser-csharp/comment-page-1/#comment-399</link>
		<dc:creator>Cengiz</dc:creator>
		<pubDate>Mon, 24 May 2010 15:07:57 +0000</pubDate>
		<guid isPermaLink="false">http://starikovs.com/?p=155#comment-399</guid>
		<description>wb.AllowNavigation=true 
wb.DocumentText=&quot;&quot;;</description>
		<content:encoded><![CDATA[<p>wb.AllowNavigation=true<br />
wb.DocumentText=&#8221;";</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: laurian</title>
		<link>http://starikovs.com/2009/11/25/set-html-webbrowser-csharp/comment-page-1/#comment-240</link>
		<dc:creator>laurian</dc:creator>
		<pubDate>Tue, 09 Feb 2010 12:03:48 +0000</pubDate>
		<guid isPermaLink="false">http://starikovs.com/?p=155#comment-240</guid>
		<description>You just have to wait a little for the document... try inserting, between navigate and write:

while (browser.Document == null &amp;&amp; browser.Document.Body == null) Application.DoEvents();


You can also set the html using browser.Document.Body.InnerHTML</description>
		<content:encoded><![CDATA[<p>You just have to wait a little for the document&#8230; try inserting, between navigate and write:</p>
<p>while (browser.Document == null &amp;&amp; browser.Document.Body == null) Application.DoEvents();</p>
<p>You can also set the html using browser.Document.Body.InnerHTML</p>
]]></content:encoded>
	</item>
</channel>
</rss>

