Click here to Skip to main content
15,896,118 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
Hi all,

I want to create a windows form, which should not have casual rectangular in shape.
Instead it should have the Shape[^]
I tried to create ellipsis shape for my window and succeeded by using the below code snippet
GraphicsPath path = new GraphicsPath();
path.AddEllipse(0,0,this.Width,this.Height);
Region region = new Region(path);  
this.Region = region; 

Is there any way to create either dynamically or at design time?
Design time it will be more helpful, 'Coz I want to place a image in the circle area.

Thanks in advance.
Posted

1 solution

you can see This example.
 
Share this answer
 
Comments
sariqkhan 20-Nov-12 4:46am    
+5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900