添加引用IrisSkin2.dll
新建个文件夹skin用来保存皮肤文件,把需要的皮肤比如MP10.ssk复制到此目录下。
在Form_Load事件里添加如下代码:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace 皮肤
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
this.skinEngine1.SkinFile = System.Environment.CurrentDirectory + "\\skin\\" + "MP10.ssk";
//或者用下面的代码
Sunisoft.IrisSkin.SkinEngine skin = new Sunisoft.IrisSkin.SkinEngine();
skin.SkinFile = System.Environment.CurrentDirectory + "\\skin\\" + "MP10.ssk";//皮肤文件
skin.Active = true; //激活
}
}
}

本文源码下载:http://dotnet.5d6d.com/thread-290-1-1.html