Monday, December 27, 2010

C# irreguler/Non rectangular shape Windows form

Hi all,

Today we will see how to customize your form shape according to your needs.

get bored looking at your rectangular shaped form.....
Following are simple steps to do this.

Step 1: Create a Windows Form Application

Step 2: Select Form1, In Properties change FormBorderStyle property to None.

Step 3: Set the image to BackgroundImage property of Form1. (This image will be the shape of your form)

Step 4: Set form Width and height equal to background image width and height.

Step 5: Set Transperencykey to Magenta color.

Step 6: Run and see your form.....


Be happy...... Make every one happy..............


Mahesh Bagul

1 comment: