How to Apply different skin of dialog
please tell me that how i can change the skin in dialog based application in C#
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Mahesh ChandPosted Sep 8, 2005, 9:47 AM
You create a Region object and set the Form.Region (or Control.Region) property to this Region object.
Now to understand it better, let's take an example. For example, you want to create a curcular form
with round and triangle shaped buttons. So first you create a Path object and add a circle to it. Then
you create a Region from path and set Form.Region property. It will make your form look curcular.
Now same applies to all controls. For example, you want to create a round button, you create a Path,
add a circle to it, create a Region and set Button.Region property.
Here are some samples:
http://www.c-sharpcorner.com/Graphics/InteractiveShapedFormsJP.asp
http://www.c-sharpcorner.com/Graphics/ShapedFormsJOD.asp
http://www.c-sharpcorner.com/Code/2002/Mar/ShapedWinFormsAppRH001.asp