how does the custom skins for c# 2010 work?

979 Views Asked by At

I'm still working on my c# application in changing the GUI and after googling around i found out that there are skins that can be used. I still don't understand how does this work, do i have to start from scratch? or will the skins merge along with my c# application. what changes will the skin do in my c# application aside from the GUI?

1

There are 1 best solutions below

0
techno On

What i normally do for skinning is to remove form borders and set a background image,thus you can create forms of any shape.The steps i follow

Set the FormBorderStyle property to None.
Set the BackgroundImage property of the form to the .bmp you created above.
Set the TransparencyKey property of the form to the background color of the .bmp file

enter image description here

There are 2 parts to a winform client area and Non Client Area,You can do anything with the Client Area easily but None Client Area is uneditable.The Skinlibary you have mentioned in your comment hookes into windows message Loop to capture Events. Check this answer to see how the Title bar color is changed Changing the color of the title bar in WinForm