<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Specify the HTML for a Windows Forms Web Browser Control</title><link>http://blogs.msdn.com/kaevans/archive/2003/02/25/2936.aspx</link><description>Learn to specify the HTML string for a Windows Forms Web Browser control.</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Specify the HTML for a Windows Forms Web Browser Control</title><link>http://blogs.msdn.com/kaevans/archive/2003/02/25/2936.aspx#11300</link><pubDate>Tue, 25 Feb 2003 14:08:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:11300</guid><dc:creator>.NET Framework Tools  - Windows Forms ActiveX Cont</dc:creator><description>The ActiveX Control Importer converts type definitions in a COM type library for an ActiveX control into a Windows Forms control...
&lt;br&gt;

&lt;br&gt;
</description></item><item><title>Creating a HTML Viewer Control : Dustin Mihalik's Blog</title><link>http://blogs.msdn.com/kaevans/archive/2003/02/25/2936.aspx#20009</link><pubDate>Tue, 25 Feb 2003 16:43:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:20009</guid><dc:creator>TrackBack</dc:creator><description>Creating a HTML Viewer Control : Dustin Mihalik's Blog</description></item><item><title>re: Specify the HTML for a Windows Forms Web Browser Control</title><link>http://blogs.msdn.com/kaevans/archive/2003/02/25/2936.aspx#24328</link><pubDate>Sun, 17 Aug 2003 12:23:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:24328</guid><dc:creator>Paul Alexander</dc:creator><description>Another quick method:&lt;br&gt;&lt;br&gt;browser.Navigate ( &amp;quot;about:&amp;lt;h1&amp;gt;Foo&amp;lt;/h1&amp;gt;&amp;quot;,ref o,ref o,ref o,ref o);&lt;br&gt;</description></item><item><title>re: Specify the HTML for a Windows Forms Web Browser Control</title><link>http://blogs.msdn.com/kaevans/archive/2003/02/25/2936.aspx#80701</link><pubDate>Fri, 27 Feb 2004 01:12:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:80701</guid><dc:creator>Joel</dc:creator><description>Thank you so much for this code!! It only took 3 hours to find!</description></item><item><title>re: Specify the HTML for a Windows Forms Web Browser Control</title><link>http://blogs.msdn.com/kaevans/archive/2003/02/25/2936.aspx#102212</link><pubDate>Tue, 30 Mar 2004 09:20:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:102212</guid><dc:creator>Henry</dc:creator><description>You are a life saver - I found a lot of snipets of code that sort of did what I wanted, but none of them actually explained why it was written that way.  Yours is the first that clearly explained why I had to call &amp;quot;navigate&amp;quot;, before then I was only getting exception errors.&lt;br&gt;&lt;br&gt;You are one righteous dude!</description></item><item><title>re: Specify the HTML for a Windows Forms Web Browser Control</title><link>http://blogs.msdn.com/kaevans/archive/2003/02/25/2936.aspx#117406</link><pubDate>Wed, 21 Apr 2004 14:18:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:117406</guid><dc:creator>jan.petras</dc:creator><description>Good stuff mate... I've been looking for something similar for a while then come to the same solution, although without using the textchange event...&lt;br&gt;&lt;br&gt;Good on you...</description></item><item><title>re: Specify the HTML for a Windows Forms Web Browser Control</title><link>http://blogs.msdn.com/kaevans/archive/2003/02/25/2936.aspx#118037</link><pubDate>Thu, 22 Apr 2004 11:14:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:118037</guid><dc:creator>Asim</dc:creator><description>Dude u rock!! Thanks for the explanation.. FInally....I do have another question though. Iam using this to make a telnet/mudding application. Once I convert the stream to html and display it How do i get the control to scroll down like a textbox would?&lt;br&gt;</description></item><item><title>re: Specify the HTML for a Windows Forms Web Browser Control</title><link>http://blogs.msdn.com/kaevans/archive/2003/02/25/2936.aspx#119472</link><pubDate>Sat, 24 Apr 2004 17:50:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:119472</guid><dc:creator>organon</dc:creator><description>Try something like this. It works for some scrollable controls. May or may not work for the browser control. Theoretically, you'd just call ScrollToBottom() each time you add text to the control.&lt;br&gt;&lt;br&gt;const int WM_VSCROLL = 0x0115;&lt;br&gt;readonly IntPtr SB_BOTTOM = new IntPtr( 7 );&lt;br&gt;&lt;br&gt;public void ScrollToBottom()&lt;br&gt;{&lt;br&gt;    System.Windows.Forms.Message msg = &lt;br&gt;        Message.Create( this.Handle,&lt;br&gt;                        WM_VSCROLL,&lt;br&gt;                        SB_BOTTOM,&lt;br&gt;                        IntPtr.Zero );&lt;br&gt;    this.DefWndProc( ref msg );&lt;br&gt;}&lt;br&gt;</description></item><item><title>re: Specify the HTML for a Windows Forms Web Browser Control</title><link>http://blogs.msdn.com/kaevans/archive/2003/02/25/2936.aspx#119474</link><pubDate>Sat, 24 Apr 2004 17:52:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:119474</guid><dc:creator>organon</dc:creator><description>Sorry, the example assumes that you've subclassed the browser control. If not, replace &amp;quot;this&amp;quot; with &amp;quot;this.browser&amp;quot; (assuming the naming system above).</description></item><item><title>re: Specify the HTML for a Windows Forms Web Browser Control</title><link>http://blogs.msdn.com/kaevans/archive/2003/02/25/2936.aspx#122947</link><pubDate>Thu, 29 Apr 2004 17:27:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:122947</guid><dc:creator>TechJunkie</dc:creator><description>I tried doing exactly this. But, when the form is opened, it gave exception stating &amp;quot;Exception has been thrown by the target of an invocation&amp;quot;. And when I click &amp;quot;OK&amp;quot;, it displays the stack with bottom most trace pointing to &amp;quot;System.RuntimeType.CreateInstanceImpl(Boolean publicOnly)&amp;quot;&lt;br&gt;&lt;br&gt;I am using Windows 2000 SP4 with IE 6 SP1. I have VStudio 2003 with .NET framework 1.1.&lt;br&gt;&lt;br&gt;I have no idea what's happening! Greatly appreciate if anyone can help. Thanks.</description></item><item><title>re: Specify the HTML for a Windows Forms Web Browser Control</title><link>http://blogs.msdn.com/kaevans/archive/2003/02/25/2936.aspx#122978</link><pubDate>Thu, 29 Apr 2004 17:59:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:122978</guid><dc:creator>TechJunkie</dc:creator><description>OK. I was trying this on a form which is an MDI child. When I played around with it, I got a clearer exception on the line where the browser was created (within initComponents). It said &amp;quot;could not instantiate ActiveX control because current thread is not signle-threaded apartment&amp;quot;.&lt;br&gt;&lt;br&gt;When I tried the same code on a form (not an MDI child) that has the main (like in the above example) it worked!&lt;br&gt;&lt;br&gt;Anyone faced this issue? Thanks.</description></item><item><title>re: Specify the HTML for a Windows Forms Web Browser Control</title><link>http://blogs.msdn.com/kaevans/archive/2003/02/25/2936.aspx#123024</link><pubDate>Thu, 29 Apr 2004 19:05:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:123024</guid><dc:creator>TechJunkie</dc:creator><description>I got the answer. I had missed out &amp;quot;[STAThread]&amp;quot; directive above main method declaration.&lt;br&gt;&lt;br&gt;Thanks.</description></item><item><title>re: Specify the HTML for a Windows Forms Web Browser Control</title><link>http://blogs.msdn.com/kaevans/archive/2003/02/25/2936.aspx#129099</link><pubDate>Mon, 10 May 2004 18:12:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:129099</guid><dc:creator>Hugo Hallman</dc:creator><description>Thanks!</description></item><item><title>Adding a Web browser control to a windows form application</title><link>http://blogs.msdn.com/kaevans/archive/2003/02/25/2936.aspx#133919</link><pubDate>Tue, 18 May 2004 12:48:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:133919</guid><dc:creator>Michael Falconer</dc:creator><description /></item><item><title>Adding a Web browser control to a windows form application</title><link>http://blogs.msdn.com/kaevans/archive/2003/02/25/2936.aspx#134015</link><pubDate>Tue, 18 May 2004 16:31:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:134015</guid><dc:creator>Michael Falconer</dc:creator><description /></item><item><title>re: Specify the HTML for a Windows Forms Web Browser Control</title><link>http://blogs.msdn.com/kaevans/archive/2003/02/25/2936.aspx#137727</link><pubDate>Sat, 22 May 2004 00:12:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:137727</guid><dc:creator>Nauman</dc:creator><description>Hello,&lt;br&gt;&lt;br&gt;I am trying put the Web browser control in an application. I want to load an embedded HTML resource into the web browser control that will contain several link. What I want is to know which link has been clicked and then according to the selected option display the specific windows form etc. How I can do that.&lt;br&gt;&lt;br&gt;Best, Nauman</description></item><item><title>re: Specify the HTML for a Windows Forms Web Browser Control</title><link>http://blogs.msdn.com/kaevans/archive/2003/02/25/2936.aspx#137755</link><pubDate>Sat, 22 May 2004 00:15:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:137755</guid><dc:creator>Nauman</dc:creator><description>It will be your great help if you can e-mail me any information at naumanemails@yahoo.com.&lt;br&gt;&lt;br&gt;Thanks, Nauman</description></item><item><title>Adding a Web browser control to a windows form application : Solution #1</title><link>http://blogs.msdn.com/kaevans/archive/2003/02/25/2936.aspx#142996</link><pubDate>Thu, 27 May 2004 15:40:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:142996</guid><dc:creator>Michael Falconer</dc:creator><description /></item><item><title>Adding a Web browser control to a windows form application : Solution #1</title><link>http://blogs.msdn.com/kaevans/archive/2003/02/25/2936.aspx#142997</link><pubDate>Thu, 27 May 2004 15:44:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:142997</guid><dc:creator>Michael Falconer</dc:creator><description /></item><item><title>re: Specify the HTML for a Windows Forms Web Browser Control</title><link>http://blogs.msdn.com/kaevans/archive/2003/02/25/2936.aspx#143935</link><pubDate>Fri, 28 May 2004 20:43:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:143935</guid><dc:creator>mikewo</dc:creator><description>When attempting to add this form as a child form in a MDI container I don't get an error, but the browser navigation appears to go away and not come back.  It runs through the code to set the inner html, but the text never appears.  The mouse is using the wait cursor and it just sits there.  The application is not locked up, but the browser never shows the content.&lt;br&gt;&lt;br&gt;Any ideas?&lt;br&gt;[Will look back here for answers]</description></item><item><title>re: Specify the HTML for a Windows Forms Web Browser Control</title><link>http://blogs.msdn.com/kaevans/archive/2003/02/25/2936.aspx#145520</link><pubDate>Tue, 01 Jun 2004 19:06:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:145520</guid><dc:creator>codepenguin</dc:creator><description>Well done!&lt;br&gt;&lt;br&gt;This was very helpful information.</description></item><item><title>re: Specify the HTML for a Windows Forms Web Browser Control</title><link>http://blogs.msdn.com/kaevans/archive/2003/02/25/2936.aspx#152832</link><pubDate>Thu, 10 Jun 2004 21:16:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:152832</guid><dc:creator>Mike</dc:creator><description>I am trying to get the web control to scroll as Asim was but the problem I've found is that the handle returned by browser.Handle is not the correct window handle (as shown by Spy++). If I get the correct handle with Spy++ and use another app to send a message to the browser window, it will scroll correctly. Any ideas on how to get the right handle?</description></item><item><title>passing values from a browser object in the form which has a web application to form in .net</title><link>http://blogs.msdn.com/kaevans/archive/2003/02/25/2936.aspx#166381</link><pubDate>Sat, 26 Jun 2004 01:08:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:166381</guid><dc:creator>mani</dc:creator><description>can someone hel me ou with this.&lt;br&gt;&lt;br&gt;thanks&lt;br&gt;&lt;br&gt;mani</description></item></channel></rss>