Click here to Skip to main content
15,889,739 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to create C# oval shape WinForm's?
Posted
Updated 12-Nov-11 7:25am
v2

You can do this by changing the Region Property[^] of your Form.
Actually that page shows you how to do this for a Button. It works the same for Forms.
Also see the Region page[^].
Here[^] are some examples and issues too.
Hope it helps.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 12-Nov-11 14:52pm    
More exactly, Region is a property of System.Windows.Forms.Control -- that's all that matters. I voted 4.
--SA
Sander Rossel 12-Nov-11 19:12pm    
Well, I did provide a link to the Control.Region Property ;)
Didn't want to bother the OP with Inheritance details etc. But thanks for the upvote! :)
These CP Articles can helps
Oval Form
Custom Shaped Windows Forms

Best of Luck.
 
Share this answer
 
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 12-Nov-11 15:01pm    
Sorry, Ravi. Both solutions are fake and unreliable. You should know what technique is right if you recommend some solution, to avoid misleading OP. The values of these "solution" is negative -- it will bring more of a frustration than of a feature. Please see my comments to the first article -- I voted 1. I just had to, sorry.
--SA
RaviRanjanKr 13-Nov-11 1:22am    
yeah! My bad.
Actually I was getting that OP need to know how to make custom form with different shape like Oval and Circle. so i just referred a Link.
My Intention was not to misleading OP.

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