WinForm form skinning is easy to use with IrisSkin4.dll in C#.net vs2010

Source: Internet
Author: User

IrisSkin2.dll is a great free skin control that makes it easy to make WinForm form peels.
However, IrisSkin2.dll can only be used in. NET Faremwork 4.0 and earlier, so to use it in VS2010 requires that you set your project framework to the. NET Framework 4.0, there is another way is to use IrisSkin4.dll, his method of use and IrisSkin2.dll basically is exactly the same

First, download the IrisSkin4.dll on the Internet (packaged with the skin), copy the IrisSkin4.dll with skins (skin) to the \Bin\Debug folder of the project


Second, right-click on "References" in the program's Explorer, select "Add Reference", locate the IrisSkin4.dll file you just copied, and click "OK".

  

  

Three, "Tools"-"SELECT toolbox item--". NET Framework Components "-" Browse "-Find irisskin4.dll--> click" OK ", skinengine control to the Toolbox

  

  

  

Iv. Add the control to the main form of the program and edit the following line of code in the main form's constructor to select the skin to complete the rendering

" \\Skins\\ The selected skin name (suffix. SSK)  "; // Select Skin File

  

The effect of using IrisSkin4.dll is limited, sometimes it renders us crazy (for example, I used a sportsblue skin, and then found that although the skin style I like, but in its rendering under the form of the button is very low), then we want to customize their own dissatisfied with the control Instead of needing the skin to render these controls, simply add the following line of code:

9999;      // set the control that does not need to be rendered tag value is 9999

You can then display the control's custom style by setting the Tag Value property of the control that does not need to be rendered to 9999.

WinForm form skinning is easy to use with IrisSkin4.dll in C#.net vs2010

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.