<?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: In Depth: A definitive guide to .NET user control&#8217;s usage mode: DesignMode or UserMode</title>
	<atom:link href="http://www.undermyhat.org/blog/2009/07/in-depth-a-definitive-guide-to-net-user-controls-usage-mode-designmode-or-usermode/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.undermyhat.org/blog/2009/07/in-depth-a-definitive-guide-to-net-user-controls-usage-mode-designmode-or-usermode/</link>
	<description>secrets and mysteries from the realms of the technocrats and other such ramblings</description>
	<lastBuildDate>Wed, 01 Feb 2012 04:10:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Emil</title>
		<link>http://www.undermyhat.org/blog/2009/07/in-depth-a-definitive-guide-to-net-user-controls-usage-mode-designmode-or-usermode/comment-page-1/#comment-62342</link>
		<dc:creator>Emil</dc:creator>
		<pubDate>Thu, 19 Jan 2012 15:03:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.undermyhat.org/blog/?p=59#comment-62342</guid>
		<description>GetName() does not return a string.</description>
		<content:encoded><![CDATA[<p>GetName() does not return a string.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adele</title>
		<link>http://www.undermyhat.org/blog/2009/07/in-depth-a-definitive-guide-to-net-user-controls-usage-mode-designmode-or-usermode/comment-page-1/#comment-29468</link>
		<dc:creator>Adele</dc:creator>
		<pubDate>Sun, 03 Jul 2011 21:11:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.undermyhat.org/blog/?p=59#comment-29468</guid>
		<description>I was really confused, and this awsnered all my questions.</description>
		<content:encoded><![CDATA[<p>I was really confused, and this awsnered all my questions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abel Braaksma</title>
		<link>http://www.undermyhat.org/blog/2009/07/in-depth-a-definitive-guide-to-net-user-controls-usage-mode-designmode-or-usermode/comment-page-1/#comment-8489</link>
		<dc:creator>Abel Braaksma</dc:creator>
		<pubDate>Tue, 13 Jul 2010 13:57:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.undermyhat.org/blog/?p=59#comment-8489</guid>
		<description>What version of Visual Studio and/or .NET do you use? I must admit I haven&#039;t tested my solution with .NET 4.0 / VS2010 yet and considering the age of this post, I might do well in rechecking the proposed solutions. Your control being a grandchild shouldn&#039;t be an issue though.</description>
		<content:encoded><![CDATA[<p>What version of Visual Studio and/or .NET do you use? I must admit I haven&#8217;t tested my solution with .NET 4.0 / VS2010 yet and considering the age of this post, I might do well in rechecking the proposed solutions. Your control being a grandchild shouldn&#8217;t be an issue though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony</title>
		<link>http://www.undermyhat.org/blog/2009/07/in-depth-a-definitive-guide-to-net-user-controls-usage-mode-designmode-or-usermode/comment-page-1/#comment-8488</link>
		<dc:creator>Tony</dc:creator>
		<pubDate>Tue, 13 Jul 2010 13:51:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.undermyhat.org/blog/?p=59#comment-8488</guid>
		<description>Oh, I forgot to mention, it is a nested user control that is causing the problem. It is nested to the 3 level (a grandchild).</description>
		<content:encoded><![CDATA[<p>Oh, I forgot to mention, it is a nested user control that is causing the problem. It is nested to the 3 level (a grandchild).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony</title>
		<link>http://www.undermyhat.org/blog/2009/07/in-depth-a-definitive-guide-to-net-user-controls-usage-mode-designmode-or-usermode/comment-page-1/#comment-8487</link>
		<dc:creator>Tony</dc:creator>
		<pubDate>Tue, 13 Jul 2010 13:46:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.undermyhat.org/blog/?p=59#comment-8487</guid>
		<description>Hi Abel,

Whenever I run the code from Visual Studio (F5 or Ctrl+F5) my application still thinks it is in DesignMode using your code. Can I not debug my application with your code, or am I doing something wrong with my build configuration/process?

If I put the data from the ExecutionMode properties in a message box I get exactly the same values in designer as I do running the application - though UserMode is never true, however, I gather it will be when it is published.

Tony</description>
		<content:encoded><![CDATA[<p>Hi Abel,</p>
<p>Whenever I run the code from Visual Studio (F5 or Ctrl+F5) my application still thinks it is in DesignMode using your code. Can I not debug my application with your code, or am I doing something wrong with my build configuration/process?</p>
<p>If I put the data from the ExecutionMode properties in a message box I get exactly the same values in designer as I do running the application &#8211; though UserMode is never true, however, I gather it will be when it is published.</p>
<p>Tony</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reader Man</title>
		<link>http://www.undermyhat.org/blog/2009/07/in-depth-a-definitive-guide-to-net-user-controls-usage-mode-designmode-or-usermode/comment-page-1/#comment-7271</link>
		<dc:creator>Reader Man</dc:creator>
		<pubDate>Mon, 17 May 2010 20:38:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.undermyhat.org/blog/?p=59#comment-7271</guid>
		<description>I think for developers that need dynamic loading, make the class and its properties into instance properties instead of class properties plus writing the thread safety features in it. so the search will be done every-time the property is accessed.

or what do u think Abel?</description>
		<content:encoded><![CDATA[<p>I think for developers that need dynamic loading, make the class and its properties into instance properties instead of class properties plus writing the thread safety features in it. so the search will be done every-time the property is accessed.</p>
<p>or what do u think Abel?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abel Braaksma</title>
		<link>http://www.undermyhat.org/blog/2009/07/in-depth-a-definitive-guide-to-net-user-controls-usage-mode-designmode-or-usermode/comment-page-1/#comment-6402</link>
		<dc:creator>Abel Braaksma</dc:creator>
		<pubDate>Wed, 20 Jan 2010 23:43:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.undermyhat.org/blog/?p=59#comment-6402</guid>
		<description>You&#039;re using your .NET control in a native COM application. This article is about a .NET control in a .NET environment. .NET, but its nature, has no knowing of the COM environment. To find out whether you&#039;re in design mode you need to call the correct COM interface method on the host. Unfortunately, I have yet to see an example of how to retrieve that method.

Luckily, there&#039;s another way. A bit hackier perhaps, but working, by checking whether VB6 is loaded in the current process or not: http://www.vbforums.com/showthread.php?t=231468</description>
		<content:encoded><![CDATA[<p>You&#8217;re using your .NET control in a native COM application. This article is about a .NET control in a .NET environment. .NET, but its nature, has no knowing of the COM environment. To find out whether you&#8217;re in design mode you need to call the correct COM interface method on the host. Unfortunately, I have yet to see an example of how to retrieve that method.</p>
<p>Luckily, there&#8217;s another way. A bit hackier perhaps, but working, by checking whether VB6 is loaded in the current process or not: <a href="http://www.vbforums.com/showthread.php?t=231468" rel="nofollow">http://www.vbforums.com/showthread.php?t=231468</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.undermyhat.org/blog/2009/07/in-depth-a-definitive-guide-to-net-user-controls-usage-mode-designmode-or-usermode/comment-page-1/#comment-4190</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Sun, 17 Jan 2010 22:43:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.undermyhat.org/blog/?p=59#comment-4190</guid>
		<description>I have a C# UserControl that exposes Com for Interop purposes in a VB6 Application.

I&#039;ve been trying to get designview or usermode to work in any form and this gave me hopes, but when run from VB6 in the designer and from executable no assemblies work. In fact all methods provide the same results.

Possibly I&#039;m not exposing a particular attribute but I&#039;m at a loss.


It works perfect when embedded in .net apps. or a current release of visual studio.

This is the most intelligent writeup on this, so I thought I&#039;d ping you.</description>
		<content:encoded><![CDATA[<p>I have a C# UserControl that exposes Com for Interop purposes in a VB6 Application.</p>
<p>I&#8217;ve been trying to get designview or usermode to work in any form and this gave me hopes, but when run from VB6 in the designer and from executable no assemblies work. In fact all methods provide the same results.</p>
<p>Possibly I&#8217;m not exposing a particular attribute but I&#8217;m at a loss.</p>
<p>It works perfect when embedded in .net apps. or a current release of visual studio.</p>
<p>This is the most intelligent writeup on this, so I thought I&#8217;d ping you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abel Braaksma</title>
		<link>http://www.undermyhat.org/blog/2009/07/in-depth-a-definitive-guide-to-net-user-controls-usage-mode-designmode-or-usermode/comment-page-1/#comment-6405</link>
		<dc:creator>Abel Braaksma</dc:creator>
		<pubDate>Wed, 19 Aug 2009 10:02:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.undermyhat.org/blog/?p=59#comment-6405</guid>
		<description>Yes, Michał, it will fail in that scenario. Dynamic loading is exactly what is done when loaded in a designer. You could say, that with my approach, I consider all dynamic loading siting in a designer.

If you need to support dynamic loading, you may want to be careful with this approach. I currently have no idea how you can support that without resorting to existing worse methods.</description>
		<content:encoded><![CDATA[<p>Yes, Michał, it will fail in that scenario. Dynamic loading is exactly what is done when loaded in a designer. You could say, that with my approach, I consider all dynamic loading siting in a designer.</p>
<p>If you need to support dynamic loading, you may want to be careful with this approach. I currently have no idea how you can support that without resorting to existing worse methods.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michał Drozdowicz</title>
		<link>http://www.undermyhat.org/blog/2009/07/in-depth-a-definitive-guide-to-net-user-controls-usage-mode-designmode-or-usermode/comment-page-1/#comment-64</link>
		<dc:creator>Michał Drozdowicz</dc:creator>
		<pubDate>Thu, 06 Aug 2009 10:10:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.undermyhat.org/blog/?p=59#comment-64</guid>
		<description>Hi, 
How about a scenario in which you actually load the control library dynamically (let&#039;s say in a plugin architecture). Won&#039;t the &quot;Recursive EntryAssembly Reference Lookup Test&quot; fail in such case?</description>
		<content:encoded><![CDATA[<p>Hi,<br />
How about a scenario in which you actually load the control library dynamically (let&#8217;s say in a plugin architecture). Won&#8217;t the &#8220;Recursive EntryAssembly Reference Lookup Test&#8221; fail in such case?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (User agent is rejected)

Served from: www.undermyhat.org @ 2012-02-08 04:11:20 -->
