使用IrisSkin2给软件"换肤"

1把IrisSkin2.dll和.SSK文件复制到bin\Debug目录下(.SSK我放在了skin文件夹下);
2.在工程里添加引用;
3.在form上添加两个Button: button1,button2;
4.代码:

public partial class Form1 : Form
    {
        Sunisoft.IrisSkin.SkinEngine se = null;
        public Form1()
        {
            InitializeComponent();
            se = new Sunisoft.IrisSkin.SkinEngine();
            se.SkinAllForm = true;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            se.SkinFile = "skin/MP10.ssk";
        }

        private void button2_Click(object sender, EventArgs e)
        {
            se.SkinFile = "skin/MSN.ssk";
        }
    }

你可能感兴趣的:(in)