C # Winform in the form of landscaping - easily skinnable with IrisSkin

I wrote a proper way text links, there are skin package:
http://note.youdao.com/noteshare?id=c795bb6fb4db3b5254a2a07e91caab09&sub=83546D33A44E4480BE16167723EDFA49

Today reminded by the older generation did not know winform form as well as landscaping tools, Oh, have to say, ignorant. Here is a summary of what irisskin2 using the steps and problems encountered and solutions.
1 URL: http://www.pc6.com/softview/SoftView_70918.html#download
skin resurfacing material control package, IrisSkin2.dll skin material resources to download, which is a programming development-related assets, mainly some using IrisSkin2.dll control software window skinning material documents, including some GIF image resources, some of ssk files, compressed package a total of 22 kinds of skin material, use: the control onto your form, simply one line of code, you can achieve the entire form, including the replacement of the skin of all its controls,
a total of dozens of sets of skin for use, very easy to use. Eliminating the time and effort you skin design and development of software systems.
All source code line: skinEngine1.SkinFile = "WaveColor1.ssk";
wherein ssk file is a skin file.
If the above is not, control is provided SkinFile property skinEngine1 choose the appropriate skin, remember to remove the front of the path, to name just
as SkinFile = G: \ 360Downloads \ skin controls \ skin \ MP10 \ MP10.ssk, To the front section deleted, leaving only the name of the skin that make SkinFile = MP10.ssk;

A. Add controls IrisSkin2.dll.

Method:
1. Right "toolbox." "Add Tab", named "skin."
2. Right "skin", "options" dialog box
3. Click "Browse", find IrisSkin2.dll ,, next, next, OK.
4. will appear in the skin.
5. The SkinEngine onto the design surface, appears below.

 二,把皮肤文件中以ssk为后缀名的文件(如OneGreen.ssk)放在bin文件夹的debug文件夹里。

 三,添加代码。
       双击界面,进入代码,
    private void Form1_Load(object sender, EventArgs e)
    {
        skinEngine1.SkinFile = Application.StartupPath + @"\MP10.ssk";

    }

2, problems encountered
(1) URL: http://www.cnblogs.com/xuhongfei/archive/2013/03/02/2939710.html
error: type Universe can not resolve assembly: System.Design, Version = 2.0.0.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a. The cause of this problem is when the new framework of the project I chose .Net4.0, however .Net4.0 contains two during installation, as if the default is .Net4.0 Client Profile, which will be reported when you add in the following the above error.
    The solution is: Right-click on the Solution Explorer project item, choose Properties, the framework FrameWork version can be changed .Net4.
(2) Website: http://zhidao.baidu.com/link?url=YOvAeHLkOgmE-XKa7YnVFs4qE4a--5bsCKxweIDuYgHwU-TygCGKm1hePlWTDrQ4X9eIjOZfLaqVgWsp2eUgF_

C # error !! capacity exceeds the maximum capacity. Parameter name: capacity
solution: The second parameter "message" is too long, the two words should be able to, as the "prompt"
3, final renderings
when you add a tab, a conventional toolbox only option card, right-click General -> Add tab and then enter the name of the tab, right-click on the General tab in the final, show all hooked this option, just add the tab will be able to see.

Finally renderings

Error playing the top box that appears there, like the word prompted to change.

If you want the style applied to all form, in the SkinAllForm property is set to true, do not want is False. There is also the SkinFile select a style file path, before you can display style.

= + @ Application.StartupPath skinEngine1.SkinFile "\ DiamondBlue.ssk";
skinEngine1.SkinFile = "DiamondBlue.ssk"; // filename pattern file
write two lines of code in the form load method.

Published 48 original articles · won praise 3 · views 20000 +

Guess you like

Origin blog.csdn.net/chscomfaner/article/details/82785062