<?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: Passing Parameters using LoadControl()</title>
	<atom:link href="http://www.grumpydev.com/2009/01/05/passing-parameters-using-loadcontrol/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.grumpydev.com/2009/01/05/passing-parameters-using-loadcontrol/</link>
	<description>The Technical Jibber Jabber of Steven Robbins</description>
	<lastBuildDate>Fri, 30 Jul 2010 05:59:46 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Robert W. (Honolulu/Vancouver)</title>
		<link>http://www.grumpydev.com/2009/01/05/passing-parameters-using-loadcontrol/comment-page-1/#comment-276</link>
		<dc:creator>Robert W. (Honolulu/Vancouver)</dc:creator>
		<pubDate>Wed, 09 Jun 2010 21:12:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.grumpydev.com/?p=48#comment-276</guid>
		<description>Aloha Steven!

Thank you for excellent solution!!  I&#039;ve been searching for 2 days for a way to generically implement User Controls, as well as pass them strongly typed data.  I&#039;d first tried introducing an interface.  That solved the first part but not the second.  Your solution works well with both!

P.S. I haven&#039;t yet tackled the issue of transferring user entered data from the User Control back to the form but hope to solve this part soon too.</description>
		<content:encoded><![CDATA[<p>Aloha Steven!</p>
<p>Thank you for excellent solution!!  I&#8217;ve been searching for 2 days for a way to generically implement User Controls, as well as pass them strongly typed data.  I&#8217;d first tried introducing an interface.  That solved the first part but not the second.  Your solution works well with both!</p>
<p>P.S. I haven&#8217;t yet tackled the issue of transferring user entered data from the User Control back to the form but hope to solve this part soon too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: srobbins</title>
		<link>http://www.grumpydev.com/2009/01/05/passing-parameters-using-loadcontrol/comment-page-1/#comment-233</link>
		<dc:creator>srobbins</dc:creator>
		<pubDate>Tue, 23 Mar 2010 08:51:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.grumpydev.com/?p=48#comment-233</guid>
		<description>There&#039;s not a lot you can do about that John. The only possible solutions I can think of off the top of my head are revert to reflection, have a horrible case statement to construct the relevant type or try and abstract all of the UserControls to a common interface.</description>
		<content:encoded><![CDATA[<p>There&#8217;s not a lot you can do about that John. The only possible solutions I can think of off the top of my head are revert to reflection, have a horrible case statement to construct the relevant type or try and abstract all of the UserControls to a common interface.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://www.grumpydev.com/2009/01/05/passing-parameters-using-loadcontrol/comment-page-1/#comment-231</link>
		<dc:creator>John</dc:creator>
		<pubDate>Mon, 22 Mar 2010 16:42:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.grumpydev.com/?p=48#comment-231</guid>
		<description>What if i didnt know explicitely what the usercontrol was before runtime.

Currently i have a dynamically loaded usercontrol and will need to be able to pass parameters to the usercontrol pending on user selected choices preceding the loading of the usercontrol.

Data.uControl = LoadControl(core.Type.tostring &amp; &quot;.ascx&quot;)
....
Dim par As Control = Me.Parent
par.Controls.Add(Data.uControl)</description>
		<content:encoded><![CDATA[<p>What if i didnt know explicitely what the usercontrol was before runtime.</p>
<p>Currently i have a dynamically loaded usercontrol and will need to be able to pass parameters to the usercontrol pending on user selected choices preceding the loading of the usercontrol.</p>
<p>Data.uControl = LoadControl(core.Type.tostring &amp; &#8220;.ascx&#8221;)<br />
&#8230;.<br />
Dim par As Control = Me.Parent<br />
par.Controls.Add(Data.uControl)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon</title>
		<link>http://www.grumpydev.com/2009/01/05/passing-parameters-using-loadcontrol/comment-page-1/#comment-196</link>
		<dc:creator>Jon</dc:creator>
		<pubDate>Wed, 03 Mar 2010 20:51:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.grumpydev.com/?p=48#comment-196</guid>
		<description>I loves reflection... thanks for the post!</description>
		<content:encoded><![CDATA[<p>I loves reflection&#8230; thanks for the post!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryno</title>
		<link>http://www.grumpydev.com/2009/01/05/passing-parameters-using-loadcontrol/comment-page-1/#comment-111</link>
		<dc:creator>Ryno</dc:creator>
		<pubDate>Thu, 13 Aug 2009 17:27:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.grumpydev.com/?p=48#comment-111</guid>
		<description>Thanks a lot for this! It helped me a lot today</description>
		<content:encoded><![CDATA[<p>Thanks a lot for this! It helped me a lot today</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: srobbins</title>
		<link>http://www.grumpydev.com/2009/01/05/passing-parameters-using-loadcontrol/comment-page-1/#comment-84</link>
		<dc:creator>srobbins</dc:creator>
		<pubDate>Fri, 24 Apr 2009 10:58:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.grumpydev.com/?p=48#comment-84</guid>
		<description>I&#039;ve just downloaded WinZIP and opened it just fine, and I&#039;ve also tried it in WinRAR, 7Zip and the built in Windows ZIP folder functionality just fine?</description>
		<content:encoded><![CDATA[<p>I&#8217;ve just downloaded WinZIP and opened it just fine, and I&#8217;ve also tried it in WinRAR, 7Zip and the built in Windows ZIP folder functionality just fine?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Olson</title>
		<link>http://www.grumpydev.com/2009/01/05/passing-parameters-using-loadcontrol/comment-page-1/#comment-83</link>
		<dc:creator>Stefan Olson</dc:creator>
		<pubDate>Thu, 23 Apr 2009 21:09:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.grumpydev.com/?p=48#comment-83</guid>
		<description>WinZip won&#039;t open the file.</description>
		<content:encoded><![CDATA[<p>WinZip won&#8217;t open the file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: srobbins</title>
		<link>http://www.grumpydev.com/2009/01/05/passing-parameters-using-loadcontrol/comment-page-1/#comment-80</link>
		<dc:creator>srobbins</dc:creator>
		<pubDate>Mon, 20 Apr 2009 07:16:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.grumpydev.com/?p=48#comment-80</guid>
		<description>@Ron Thanks for the comment. I&#039;ve just redownloaded and opened it with WinRAR and it looks just fine to me, which is wierd. What are you opening it with?</description>
		<content:encoded><![CDATA[<p>@Ron Thanks for the comment. I&#8217;ve just redownloaded and opened it with WinRAR and it looks just fine to me, which is wierd. What are you opening it with?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ron</title>
		<link>http://www.grumpydev.com/2009/01/05/passing-parameters-using-loadcontrol/comment-page-1/#comment-79</link>
		<dc:creator>Ron</dc:creator>
		<pubDate>Sat, 18 Apr 2009 17:14:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.grumpydev.com/?p=48#comment-79</guid>
		<description>Just a note, the extensionless file in the zip is really a compressed file too. Just rename it, or tell it to open with zip/winrar or whatever you use. Youll then find the sln + code</description>
		<content:encoded><![CDATA[<p>Just a note, the extensionless file in the zip is really a compressed file too. Just rename it, or tell it to open with zip/winrar or whatever you use. Youll then find the sln + code</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: srobbins</title>
		<link>http://www.grumpydev.com/2009/01/05/passing-parameters-using-loadcontrol/comment-page-1/#comment-28</link>
		<dc:creator>srobbins</dc:creator>
		<pubDate>Sat, 07 Feb 2009 08:13:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.grumpydev.com/?p=48#comment-28</guid>
		<description>Seems fine to me, what are you opening it with?</description>
		<content:encoded><![CDATA[<p>Seems fine to me, what are you opening it with?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Donna</title>
		<link>http://www.grumpydev.com/2009/01/05/passing-parameters-using-loadcontrol/comment-page-1/#comment-27</link>
		<dc:creator>Donna</dc:creator>
		<pubDate>Sat, 07 Feb 2009 06:21:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.grumpydev.com/?p=48#comment-27</guid>
		<description>The zip file&#039;s corrupt.  Could you email it to me?</description>
		<content:encoded><![CDATA[<p>The zip file&#8217;s corrupt.  Could you email it to me?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
