<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/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>Non-Rectangular Form</title><link>http://weblogs.asp.net/cumpsd/pages/79878.aspx</link><description>I received some good feedback from my previous article ( A Console IRC Bot ) and here is the next one. The question for this article was how to make nonsquare windows? . It's actually very easy according to the MSDN site. You add this piece of code to</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>re: Non-Rectangular Form</title><link>http://weblogs.asp.net/cumpsd/pages/79878.aspx#3273487</link><pubDate>Wed, 25 Jul 2007 11:54:28 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:3273487</guid><dc:creator>Maks</dc:creator><author>Maks</author><description>&lt;p&gt;Nice article. However, in most cases a believe intersecting regions might be even easier. Thanks a lot!&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=3273487" width="1" height="1"&gt;</description></item><item><title>re: Non-Rectangular Form</title><link>http://weblogs.asp.net/cumpsd/pages/79878.aspx#1379479</link><pubDate>Tue, 09 Jan 2007 06:22:50 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:1379479</guid><dc:creator>Keith Knutsson</dc:creator><author>Keith Knutsson</author><description>&lt;p&gt;Thanks alot, Im going to use this for my keith knutsson applications. thanks alot.&lt;/p&gt;
&lt;p&gt;Keith Knutsson&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=1379479" width="1" height="1"&gt;</description></item><item><title>re: Non-Rectangular Form</title><link>http://weblogs.asp.net/cumpsd/pages/79878.aspx#1374670</link><pubDate>Sun, 07 Jan 2007 16:43:31 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:1374670</guid><dc:creator>ImDaFrEaK</dc:creator><author>ImDaFrEaK</author><description>&lt;p&gt;For InstaPix; &amp;nbsp;Just put a panel or something transparent in the form then have the control Dock Fill the panel. &amp;nbsp;&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=1374670" width="1" height="1"&gt;</description></item><item><title>Non-Rectangular Forms with .NET</title><link>http://weblogs.asp.net/cumpsd/pages/79878.aspx#346162</link><pubDate>Tue, 04 Jan 2005 03:44:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:346162</guid><dc:creator>TrackBack</dc:creator><author>TrackBack</author><description>&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=346162" width="1" height="1"&gt;</description></item><item><title>re: Non-Rectangular Form</title><link>http://weblogs.asp.net/cumpsd/pages/79878.aspx#177198</link><pubDate>Thu, 08 Jul 2004 11:54:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:177198</guid><dc:creator>David Cumps</dc:creator><author>David Cumps</author><description>You're making sense, but I wouldn't immediately know a solution, sorry&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=177198" width="1" height="1"&gt;</description></item><item><title>re: Non-Rectangular Form</title><link>http://weblogs.asp.net/cumpsd/pages/79878.aspx#176057</link><pubDate>Thu, 08 Jul 2004 06:32:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:176057</guid><dc:creator>InstaPix</dc:creator><author>InstaPix</author><description>what about the ClientRectangle?  I'd like to use a shaped form like this, but inside of it i want to be able to use the standard Dock Fill method to have a child control resize to an inset position... e.g. i want to draw my own title bar and resize edges.  when i just shape the window, the ClientRectangle is always the max size, so components which Dock Fill stretch out over my edges!&lt;br&gt;&lt;br&gt;Am I making sense?  I tried overriding WndProc for WM_NCCALCSIZE, but even though I inset the ClientRectangle, it seems to have no effect.&lt;br&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=176057" width="1" height="1"&gt;</description></item><item><title>re: Non-Rectangular Form</title><link>http://weblogs.asp.net/cumpsd/pages/79878.aspx#84441</link><pubDate>Fri, 05 Mar 2004 14:04:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:84441</guid><dc:creator>David Cumps</dc:creator><author>David Cumps</author><description>Strange...&lt;br&gt;When i put your line in my project the image gets shifted higher then the region.&lt;br&gt;&lt;br&gt;But when I set the FormBorderStyle to FixedSingle it works again.&lt;br&gt;&lt;br&gt;It could be a version issue?&lt;br&gt;&lt;br&gt;Anyway, it works for you, that's what counts :)&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=84441" width="1" height="1"&gt;</description></item><item><title>re: Non-Rectangular Form</title><link>http://weblogs.asp.net/cumpsd/pages/79878.aspx#84400</link><pubDate>Fri, 05 Mar 2004 11:58:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:84400</guid><dc:creator>Roberto Alicata</dc:creator><author>Roberto Alicata</author><description>I used your uploaded project and it has the FormBorderStyle property already set to None.&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=84400" width="1" height="1"&gt;</description></item><item><title>re: Non-Rectangular Form</title><link>http://weblogs.asp.net/cumpsd/pages/79878.aspx#82775</link><pubDate>Tue, 02 Mar 2004 18:32:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:82775</guid><dc:creator>David Cumps</dc:creator><author>David Cumps</author><description>Did you forget this step?&lt;br&gt;&amp;quot;Now we go to our Form, you'll have to set the FormBorderStyle property to None.&amp;quot;&lt;br&gt;&lt;br&gt;Otherwise you indeed have that shift because the caption gets drawn. Easier with a property then by code ;)&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=82775" width="1" height="1"&gt;</description></item><item><title>re: Non-Rectangular Form</title><link>http://weblogs.asp.net/cumpsd/pages/79878.aspx#82563</link><pubDate>Tue, 02 Mar 2004 12:34:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:82563</guid><dc:creator>Roberto Alicata</dc:creator><author>Roberto Alicata</author><description>after this line:&lt;br&gt;this.Region = RegionConvert.ConvertFromTransparentBitmap(imageBackground, transparentColor);&lt;br&gt;&lt;br&gt;I must add this one:&lt;br&gt;&lt;br&gt;this.Region.Translate(SystemInformation.FrameBorderSize.Width - 1,SystemInformation.CaptionHeight +  SystemInformation.FrameBorderSize.Height - 1 );&lt;br&gt;&lt;br&gt;Dont ask me why, but it works fine now :) :) &lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=82563" width="1" height="1"&gt;</description></item></channel></rss>