IrisSkin类库提供了可供我们使用的设置窗体皮肤的类,简单地说,就是给我们提供了一个皮肤引擎,通过设置皮肤引擎来达到我们想要的窗体界面。

  具体的开发步骤:

    (1)引入IrisSkin.dll文件

    (2)将所有的皮肤文件(.ssk文件)方法Debug目录下

    (3)在窗体中通过代码实现  

namespace Skin01
{
    public partial class Form1 : Form
    {
        private Sunisoft.IrisSkin.SkinEngine se = null;
        public Form1()
        {
            InitializeComponent();
            se = new Sunisoft.IrisSkin.SkinEngine(this, "skin/EmeraldColor1.ssk");//通过修改路径更换不同的皮肤
            se.SkinAllForm = true;
        }
    }
}
Demo

相关文章:

  • 2022-12-23
  • 2022-02-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-04
  • 2021-06-15
猜你喜欢
  • 2021-09-05
  • 2022-12-23
  • 2022-12-23
  • 2021-11-21
  • 2022-12-23
  • 2022-02-13
  • 2021-09-22
相关资源
相似解决方案