<?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>Clearest Code Challenge: Jesse Ezel's answer inspires!</title><link>http://blogs.msdn.com/jaybaz_ms/archive/2004/03/29/101469.aspx</link><description>Jesse posted a comment with a unique approach: Make a class that's good at laying out buttons on the bottom-right of a form. I could definitely imagine adding a Help button, for example, which would make this generality helpful. As for clarity, the downside</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Clearest Code Challenge: Jesse Ezel's answer inspires!</title><link>http://blogs.msdn.com/jaybaz_ms/archive/2004/03/29/101469.aspx#101477</link><pubDate>Mon, 29 Mar 2004 23:09:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:101477</guid><dc:creator>Thomas Eyde</dc:creator><description>Very good!&lt;br&gt;&lt;br&gt;I replaced my two statics on my ControlPositioner with the one below to match the place-all-in-corner solution. I am still using Jay's original algorithm:&lt;br&gt;&lt;br&gt;public static void PositionInLowerRightCorner(Control[] controls, Form f, int margin)&lt;br&gt;{&lt;br&gt;	Control relative = null;&lt;br&gt;&lt;br&gt;	foreach (Control c in controls)&lt;br&gt;	{&lt;br&gt;		ControlPositioner cp = new ControlPositioner(c, margin);&lt;br&gt;&lt;br&gt;		if (relative == null)&lt;br&gt;		{&lt;br&gt;			cp.PositionInLowerRightCornerOf(f);&lt;br&gt;		}&lt;br&gt;		else&lt;br&gt;		{&lt;br&gt;			cp.PositionToLeftOf(relative);&lt;br&gt;		}&lt;br&gt;		relative = c;&lt;br&gt;	}&lt;br&gt;}&lt;br&gt;</description></item><item><title>re: Clearest Code Challenge: Jesse Ezel's answer inspires!</title><link>http://blogs.msdn.com/jaybaz_ms/archive/2004/03/29/101469.aspx#101963</link><pubDate>Tue, 30 Mar 2004 00:14:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:101963</guid><dc:creator>BillT</dc:creator><description>This is fun!&lt;br&gt;&lt;br&gt;So now we have CornerAlignControls, which is a LayoutManager or ControlLayoutTool.&lt;br&gt;&lt;br&gt;What could we do to:&lt;br&gt;(1) make a more general ControlLayoutTool, or&lt;br&gt;(2) specify the layout rules, or&lt;br&gt;(3) extend all these ideas?</description></item><item><title>re: Clearest Code Challenge: Jesse Ezel's answer inspires!</title><link>http://blogs.msdn.com/jaybaz_ms/archive/2004/03/29/101469.aspx#102100</link><pubDate>Tue, 30 Mar 2004 01:15:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:102100</guid><dc:creator>David Kean</dc:creator><description>I think you'll find you need to change this line:&lt;br&gt;&lt;br&gt;lastLocation.X -= control.Width - spacing;&lt;br&gt;&lt;br&gt;to &lt;br&gt;&lt;br&gt;lastLocation.X -= control.Width + spacing;&lt;br&gt;&lt;br&gt;You will also need to think about Right-To-Left and AutoScale (the spacing should be based on AutoScaleBaseSize and the auto scale size of the new font...&lt;br&gt;&lt;br&gt;Then it starts to get complicated...</description></item><item><title>re: Clearest Code Challenge: Jesse Ezel's answer inspires!</title><link>http://blogs.msdn.com/jaybaz_ms/archive/2004/03/29/101469.aspx#102132</link><pubDate>Tue, 30 Mar 2004 02:44:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:102132</guid><dc:creator>Steve</dc:creator><description>btw, Jaybaz, how are you formatting your code in your posts. It looks really nicde.&lt;br&gt;&lt;br&gt;Would you care to share? Thanks!</description></item><item><title>re: Clearest Code Challenge: Jesse Ezel's answer inspires!</title><link>http://blogs.msdn.com/jaybaz_ms/archive/2004/03/29/101469.aspx#104159</link><pubDate>Tue, 30 Mar 2004 20:55:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:104159</guid><dc:creator>Jay Bazuzi [MS]</dc:creator><description>It's really cool to see where this is going.  Not one of us could have come this far alone.  The group dynamic is amazing.&lt;br&gt;&lt;br&gt;BillT: if you want to carry this further, it might be tough to do in the comments of my blog.  I'd suggest using your own blog.</description></item></channel></rss>