C # Add skin to a form-skinengine application

Source: Internet
Author: User

The control skinengine provided by IrisSkin2.dll is used in C # to add skins to the form. This method is the simplest

Specific steps:

. Add control Skinengine.

1. Right-click the Toolbox. "Add Tab", named "Skin".

2. Right Button "Skin", "Select item" Pop-up dialog box.

3. Click "Browse" to find IrisSkin2.dll, then you will find that the Skinengine control has been ticked-OK.

After this step, I found that I did not add the control to the Skin tab, I copied the DLL file directly, select the Skin tab, right-click Paste to import the control.

4. Add the Skinengine control to the form.

5. Place the skin file (suffix SSK) in the "~\bin\debug" folder.

6. Add code to the form Load event or constructor: This.SkinEngine.SkinFile = "**.ssk";

IrisSkin2.dll File Download

In the 4th step, you may encounter the following error:

"Type Universe cannot resolve assembly:System.Design, version=4.0.0.0, Culture=neutral, publictoken=b03f5f7f11d50a3a."

This is due to the VS2010 caused. You can:

Item, Properties->target framework--> selection. NETFramework 4.

C # Add skin to a form-skinengine application

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.