None square window in C#

Hi,


how can I make a non-square windows like in Windows Media Player 10
Are there any tutorials or samples


Answer this question

None square window in C#

  • Christoph De Baene

    Assigning a Region to the Region property of your form will do it.  If the shape you assign doesn't include the window's title bar or close button, you'll have to come up with ways for the user to move and close your form.

    The hardest part of it is creating the region.  Here's a <a href="http://weblogs.asp.net/cumpsd/articles/79878.aspx">technique</a> for extracting a path from an image.

    There is also a good sample of shaped control right here on this site.

    <a href="http://windowsforms.net/articles/usingregionmastercontrols.aspx">RegionMaster Controls</a>

  • None square window in C#