<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Hiding the Progress Bar of a .NET 2.0 CF WebBrowser</title>
	<link>http://www.chriskarcher.net/2008/01/26/hiding-the-progress-bar-of-a-net-20-cf-webbrowser</link>
	<description>Test Tagline</description>
	<pubDate>Wed, 07 Jan 2009 03:32:57 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
		<item>
		<title>By: Nikita</title>
		<link>http://www.chriskarcher.net/2008/01/26/hiding-the-progress-bar-of-a-net-20-cf-webbrowser#comment-1759</link>
		<dc:creator>Nikita</dc:creator>
		<pubDate>Thu, 06 Nov 2008 04:38:11 +0000</pubDate>
		<guid>http://www.chriskarcher.net/2008/01/26/hiding-the-progress-bar-of-a-net-20-cf-webbrowser#comment-1759</guid>
		<description>cool you saytik! Write more!</description>
		<content:encoded><![CDATA[<p>cool you saytik! Write more!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kaustubh Deshpande</title>
		<link>http://www.chriskarcher.net/2008/01/26/hiding-the-progress-bar-of-a-net-20-cf-webbrowser#comment-935</link>
		<dc:creator>Kaustubh Deshpande</dc:creator>
		<pubDate>Thu, 24 Jul 2008 05:37:22 +0000</pubDate>
		<guid>http://www.chriskarcher.net/2008/01/26/hiding-the-progress-bar-of-a-net-20-cf-webbrowser#comment-935</guid>
		<description>Hi,
It worked yaaaaaaar...
Thanx.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
It worked yaaaaaaar&#8230;<br />
Thanx.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Gifford</title>
		<link>http://www.chriskarcher.net/2008/01/26/hiding-the-progress-bar-of-a-net-20-cf-webbrowser#comment-832</link>
		<dc:creator>Scott Gifford</dc:creator>
		<pubDate>Wed, 09 Jul 2008 16:58:04 +0000</pubDate>
		<guid>http://www.chriskarcher.net/2008/01/26/hiding-the-progress-bar-of-a-net-20-cf-webbrowser#comment-832</guid>
		<description>Thanks Chris,

Yeah, the whole product renaming thing is a bit annoying; it just means you have to say both names whenever you're talking about it, because different people will know different names.

The solution I posted above with scaling seemed to work.  It might have worked just as well to put your code verbatim into a Load event; I think all scaling is done by then.

Thanks again for this very useful tip!

----Scott.</description>
		<content:encoded><![CDATA[<p>Thanks Chris,</p>
<p>Yeah, the whole product renaming thing is a bit annoying; it just means you have to say both names whenever you&#8217;re talking about it, because different people will know different names.</p>
<p>The solution I posted above with scaling seemed to work.  It might have worked just as well to put your code verbatim into a Load event; I think all scaling is done by then.</p>
<p>Thanks again for this very useful tip!</p>
<p>&#8212;-Scott.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chris</title>
		<link>http://www.chriskarcher.net/2008/01/26/hiding-the-progress-bar-of-a-net-20-cf-webbrowser#comment-829</link>
		<dc:creator>chris</dc:creator>
		<pubDate>Wed, 09 Jul 2008 13:59:45 +0000</pubDate>
		<guid>http://www.chriskarcher.net/2008/01/26/hiding-the-progress-bar-of-a-net-20-cf-webbrowser#comment-829</guid>
		<description>Until you mentioned it, I had never heard of Windows Mobile Professional vs. Windows Mobile Standard.  I googled around and found that MS just re-branded the regular and smartphone editions of WM6.

Anyways, I've never tested this code on WM6 and I imagine that MS put out a new version of Pocket IE that changed things slightly.  Until I get a chance to dig into it some, I would try modifying the WebBrowser height resizing to:

WebBrowser.Height += rectStatus.Height + 6;</description>
		<content:encoded><![CDATA[<p>Until you mentioned it, I had never heard of Windows Mobile Professional vs. Windows Mobile Standard.  I googled around and found that MS just re-branded the regular and smartphone editions of WM6.</p>
<p>Anyways, I&#8217;ve never tested this code on WM6 and I imagine that MS put out a new version of Pocket IE that changed things slightly.  Until I get a chance to dig into it some, I would try modifying the WebBrowser height resizing to:</p>
<p>WebBrowser.Height += rectStatus.Height + 6;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Gifford</title>
		<link>http://www.chriskarcher.net/2008/01/26/hiding-the-progress-bar-of-a-net-20-cf-webbrowser#comment-825</link>
		<dc:creator>Scott Gifford</dc:creator>
		<pubDate>Wed, 09 Jul 2008 02:43:38 +0000</pubDate>
		<guid>http://www.chriskarcher.net/2008/01/26/hiding-the-progress-bar-of-a-net-20-cf-webbrowser#comment-825</guid>
		<description>Turned out to be a scaling thing.  The status window was measured before the control was scaled then added to the WebBrowser's height.  When the WebBrowser was scaled down, the additional height was scaled down too, and so left some white space.

My solution was to save the height in statusBarHeight, then compensate for the scaling when the control is scaled, like this:

        protected override void ScaleControl(SizeF factor, BoundsSpecified specified)
        {
            // Adjust this here, before this is scaled.
            // After base.ScaleControl, this will be scaled, but WebBrowser will not.
            WebBrowser.Height = this.Height + (int)(statusBarHeight / factor.Height);
            base.ScaleControl(factor, specified);
        }</description>
		<content:encoded><![CDATA[<p>Turned out to be a scaling thing.  The status window was measured before the control was scaled then added to the WebBrowser&#8217;s height.  When the WebBrowser was scaled down, the additional height was scaled down too, and so left some white space.</p>
<p>My solution was to save the height in statusBarHeight, then compensate for the scaling when the control is scaled, like this:</p>
<p>        protected override void ScaleControl(SizeF factor, BoundsSpecified specified)<br />
        {<br />
            // Adjust this here, before this is scaled.<br />
            // After base.ScaleControl, this will be scaled, but WebBrowser will not.<br />
            WebBrowser.Height = this.Height + (int)(statusBarHeight / factor.Height);<br />
            base.ScaleControl(factor, specified);<br />
        }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Gifford</title>
		<link>http://www.chriskarcher.net/2008/01/26/hiding-the-progress-bar-of-a-net-20-cf-webbrowser#comment-822</link>
		<dc:creator>Scott Gifford</dc:creator>
		<pubDate>Tue, 08 Jul 2008 18:58:42 +0000</pubDate>
		<guid>http://www.chriskarcher.net/2008/01/26/hiding-the-progress-bar-of-a-net-20-cf-webbrowser#comment-822</guid>
		<description>I'm using this code with great success on a SmartPhone (Windows Mobile Standard) device.  Thanks!

On a PocketPC (Windows Mobile Professional), though, I end up with 6 pixels of whitespace at the bottom where the progress bar used to be.  Any ideas?

Thanks!

----Scott.</description>
		<content:encoded><![CDATA[<p>I&#8217;m using this code with great success on a SmartPhone (Windows Mobile Standard) device.  Thanks!</p>
<p>On a PocketPC (Windows Mobile Professional), though, I end up with 6 pixels of whitespace at the bottom where the progress bar used to be.  Any ideas?</p>
<p>Thanks!</p>
<p>&#8212;-Scott.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://www.chriskarcher.net/2008/01/26/hiding-the-progress-bar-of-a-net-20-cf-webbrowser#comment-683</link>
		<dc:creator>David</dc:creator>
		<pubDate>Thu, 05 Jun 2008 22:04:00 +0000</pubDate>
		<guid>http://www.chriskarcher.net/2008/01/26/hiding-the-progress-bar-of-a-net-20-cf-webbrowser#comment-683</guid>
		<description>Very nice workaround, I was just looking for something like this.

Thank you and regards.</description>
		<content:encoded><![CDATA[<p>Very nice workaround, I was just looking for something like this.</p>
<p>Thank you and regards.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NetRipper</title>
		<link>http://www.chriskarcher.net/2008/01/26/hiding-the-progress-bar-of-a-net-20-cf-webbrowser#comment-475</link>
		<dc:creator>NetRipper</dc:creator>
		<pubDate>Thu, 28 Feb 2008 22:48:19 +0000</pubDate>
		<guid>http://www.chriskarcher.net/2008/01/26/hiding-the-progress-bar-of-a-net-20-cf-webbrowser#comment-475</guid>
		<description>Sweet! I was just looking for this. :) I was initially hoping CF 3.5 would bring us a RichTextBox, but we're not that lucky I guess. As I just needed it for read-only purposes anyway, this is a real good alternative.

Thanks and regards.</description>
		<content:encoded><![CDATA[<p>Sweet! I was just looking for this. <img src='http://www.chriskarcher.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> I was initially hoping CF 3.5 would bring us a RichTextBox, but we&#8217;re not that lucky I guess. As I just needed it for read-only purposes anyway, this is a real good alternative.</p>
<p>Thanks and regards.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
