Click here to Skip to main content
15,886,578 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi,I want to change the shape of a window form as a circle,and that form contain two extenders.when we press on this extenders it shows a panel.Any one have idea on this.
Posted
Updated 6-Jul-14 6:17am
v2
Comments
Sergey Alexandrovich Kryukov 6-Jul-14 12:20pm    
This is quite possible, but please tag your language, the UI library you are using, whatever is relevant.
—SA

1 solution

Quick answer is: set Region for your form or any other control you want to make non-rectangular:
http://msdn.microsoft.com/en-us/library/windows/desktop/dd145102%28v=vs.85%29.aspx[^],
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.region(v=vs.110).aspx[^].

The exact way depends on what you are using, so next time please provide relevant information on your problem. I referenced two MSDN articles which are most likely you would be using, but in practice you will need just one.

Now, the problem is that you will cut out all or part of the non-client area of your window, such as title bar, close/minimize buttons, icon, etc. One of the approaches would be mimicking the non-client areas you need in the client area. In particular, you may need to implement window move, moving it by dragging by the mouse.

—SA
 
Share this answer
 

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