WinForm form skinning is easily implemented in. NET vs2010 using IrisSkin2.dll

Source: Internet
Author: User

IrisSkin2.dll is a very good free skin control, it can be easily implemented WinForm form peels!

Online a lot of friends said in the VS2010 can not use IrisSkin2.dll, I here provide a trickery method.

IrisSkin2.dll is currently available only in. NET Faremwork 4.0 and earlier, so you can set your project framework to. NET. NET Faremwork 4.0 in VS2010, as described in:

Right-click the item you created--Properties:

Change your target frame to. NET Faremwork 4.0 or earlier, I'm using 3.5 here.

OK, this setting, you can use the IrisSkin2.dll control in your VS2010 project, the next step to achieve the skin-changing function only a few steps, very simple!

First of all, the most needed, of course, is to download the IrisSkin2.dll control, here for everyone to post the address of the CSDN download area:

http://download.csdn.net/source/1465571

After downloading, we formally enter WinForm's skin-changing journey ...

1. Add the IrisSkin2.dll file to the current project reference (add Reference, right-by reference, current project, Solution Explorer, Locate the IrisSkin2.dll file.) The IrisSkin2.dll file is best placed in the current project \bin\debug file.

2. Then add the IrisSkin2.dll file to the vc2005 Toolbox: Right-click, select Item, browse to find the IrisSkin2.dll file (preferably in the current project \bin\debug file) as determined, The control is added to the toolbox. Then drag the newly added Skinengine control in the Toolbox into the current project.

The IrisSkin2.dll associated skin style file is a suffix named SSK file that you can copy to the current project \bin\debug file for easy loading of the program.

Use the following code in your project:

This.skinengine1.skinfile= "Diamondblue.ssk";
To compare style distinctions, I put buttons, labels, groubox and other controls on the form forms to see the difference between different skin styles:

namespacewin1{ Public Partial classForm1:form { PublicForm1 () {InitializeComponent (); }        Private voidForm1_Load (Objectsender, EventArgs e) {             This. Skinengine1.skinfile ="Macos.ssk"; //this.skinEngine1.SkinFile = "Msn.ssk";        }    }}

WinForm form skinning is easily implemented in. NET vs2010 using IrisSkin2.dll

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.