<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://msmvps.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>Creating Control Arrays</title><link>http://msmvps.com/blogs/pauldomag/archive/2006/08/02/106518.aspx</link><description>Control arrays are a very useful functionality in your application. They tend to simplify things that you are doing to a certain number of controls. For example, you want to disable a numerous number of textboxes, you wouldn’t have to code each textbox</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP2 (Build: 40407.4157)</generator><item><title>re: Creating Control Arrays</title><link>http://msmvps.com/blogs/pauldomag/archive/2006/08/02/106518.aspx#1139173</link><pubDate>Sun, 26 Aug 2007 18:29:43 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1139173</guid><dc:creator>airbrcgueo</dc:creator><description>&lt;p&gt;Hello! Good Site! Thanks you! yevpragdlgma&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1139173" width="1" height="1"&gt;</description></item><item><title> bathroom vanity
</title><link>http://msmvps.com/blogs/pauldomag/archive/2006/08/02/106518.aspx#1085666</link><pubDate>Sun, 05 Aug 2007 01:03:19 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1085666</guid><dc:creator> bathroom vanity
</dc:creator><description>&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://bathroomdesign.greatnow.com/bathroom-vanity"&gt;bathroomdesign.greatnow.com/bathroom-vanity&lt;/a&gt; bathroom vanity&lt;/p&gt;
&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1085666" width="1" height="1"&gt;</description></item><item><title> bathroom vanity cabinet
</title><link>http://msmvps.com/blogs/pauldomag/archive/2006/08/02/106518.aspx#1085354</link><pubDate>Sat, 04 Aug 2007 17:43:23 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1085354</guid><dc:creator> bathroom vanity cabinet
</dc:creator><description>&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://bathroomdesign.greatnow.com/bathroom-vanity-cabinet"&gt;bathroomdesign.greatnow.com/bathroom-vanity-cabinet&lt;/a&gt; bathroom vanity cabinet&lt;/p&gt;
&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1085354" width="1" height="1"&gt;</description></item><item><title> bathroom faucets
</title><link>http://msmvps.com/blogs/pauldomag/archive/2006/08/02/106518.aspx#1083360</link><pubDate>Thu, 02 Aug 2007 20:18:24 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1083360</guid><dc:creator> bathroom faucets
</dc:creator><description>&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://bathroomdesign.greatnow.com/bathroom-faucets"&gt;bathroomdesign.greatnow.com/bathroom-faucets&lt;/a&gt; bathroom faucets&lt;/p&gt;
&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1083360" width="1" height="1"&gt;</description></item><item><title> bathroom vanities
</title><link>http://msmvps.com/blogs/pauldomag/archive/2006/08/02/106518.aspx#1076914</link><pubDate>Tue, 31 Jul 2007 15:48:11 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1076914</guid><dc:creator> bathroom vanities
</dc:creator><description>&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://bathroomdesign.greatnow.com/bathroom-vanities"&gt;bathroomdesign.greatnow.com/bathroom-vanities&lt;/a&gt; bathroom vanities&lt;/p&gt;
&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1076914" width="1" height="1"&gt;</description></item><item><title> bathroom vanities
</title><link>http://msmvps.com/blogs/pauldomag/archive/2006/08/02/106518.aspx#1076913</link><pubDate>Tue, 31 Jul 2007 15:48:10 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1076913</guid><dc:creator> bathroom vanities
</dc:creator><description>&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://bathroomdesign.greatnow.com/bathroom-vanities"&gt;bathroomdesign.greatnow.com/bathroom-vanities&lt;/a&gt; bathroom vanities&lt;/p&gt;
&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1076913" width="1" height="1"&gt;</description></item><item><title>re: Creating Control Arrays</title><link>http://msmvps.com/blogs/pauldomag/archive/2006/08/02/106518.aspx#896061</link><pubDate>Wed, 09 May 2007 18:16:08 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:896061</guid><dc:creator>Max R.</dc:creator><description>&lt;p&gt;Hello! Very interesting. Thank you.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=896061" width="1" height="1"&gt;</description></item><item><title>re: Creating Control Arrays</title><link>http://msmvps.com/blogs/pauldomag/archive/2006/08/02/106518.aspx#106694</link><pubDate>Fri, 04 Aug 2006 14:28:52 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:106694</guid><dc:creator>Paul June</dc:creator><description>Well, handling events in an array control is still the same like handling events on single controls. You can either give you array of controls only 1 delegate function as an event and just check the sender parameter on who on the array triggered the event or you can assign different events for each controls in the array...&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=106694" width="1" height="1"&gt;</description></item><item><title>re: Creating Control Arrays</title><link>http://msmvps.com/blogs/pauldomag/archive/2006/08/02/106518.aspx#106674</link><pubDate>Fri, 04 Aug 2006 06:03:21 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:106674</guid><dc:creator>Ignacio Freiberg</dc:creator><description>I recently had this problem, and I just used an ArrayList of controls.&lt;br&gt;&lt;br&gt;The critical problem here is not how to make an array of controls; it's how to HANDLE EVENTS of those controls!&lt;br&gt;&lt;br&gt;How do you work with the events of the arrayed controls? :S&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=106674" width="1" height="1"&gt;</description></item><item><title>Creating Control Arrays &amp;raquo; Wagalulu - Microsoft</title><link>http://msmvps.com/blogs/pauldomag/archive/2006/08/02/106518.aspx#106637</link><pubDate>Thu, 03 Aug 2006 20:12:06 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:106637</guid><dc:creator>Creating Control Arrays » Wagalulu - Microsoft</dc:creator><description>PingBack from &lt;a rel="nofollow" target="_new" href="http://microsoft.wagalulu.com/2006/08/02/creating-control-arrays/"&gt;http://microsoft.wagalulu.com/2006/08/02/creating-control-arrays/&lt;/a&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=106637" width="1" height="1"&gt;</description></item><item><title>re: Creating Control Arrays</title><link>http://msmvps.com/blogs/pauldomag/archive/2006/08/02/106518.aspx#106624</link><pubDate>Thu, 03 Aug 2006 16:23:08 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:106624</guid><dc:creator>Alun Jones</dc:creator><description>Why not use the Tag property?&lt;br&gt;Name the Control whatever you like, then give it a Tag in the Windows Forms designer, containing text that lists which control array(s) the Control belongs to.&lt;br&gt;Then you can build your array like this:&lt;br&gt;foreach ( Control c in this.Controls) {&lt;br&gt;&lt;br&gt;if (c.Tag &amp;amp;&amp;amp; ((String)c.Tag).Contains(&amp;quot;Array1&amp;quot;)) {&lt;br&gt;&lt;br&gt;….&lt;br&gt;&lt;br&gt;}&lt;br&gt;&lt;br&gt;}&lt;br&gt;&lt;br&gt;This way, too, a control can belong to multiple arrays, you get to call it by its descriptive name, and the world is happy.&lt;br&gt;&lt;br&gt;Make sure, if you use the code I described, that you don't use tag elements that could be confused - Contains(&amp;quot;Array1&amp;quot;) will match &amp;quot;Array10&amp;quot;, &amp;quot;Array11&amp;quot;, etc. &amp;nbsp;You could easily get around this by delimiting the string, for instance as Contains(&amp;quot;:Array1:&amp;quot;), with a tag that looks like &amp;quot;:Array1:Array2:Array3:&amp;quot;.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=106624" width="1" height="1"&gt;</description></item></channel></rss>