How to Apply different skin of dialog
please tell me that how i can change the skin in dialog based application in C#
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Mahesh ChandRank #1 · 393.4K pointsPosted Sep 8, 2005, 5:47 AM EDT
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