C# SkinCrafter 换肤控件的使用

在网上SkinCrafter查找v3.3.3的破解后,使用他做了皮肤网上都说她功能比较强大。

 

vs.net 2008创建.net2.0的应用程序(废话了,要是.net3.5就可以使用wpf)  

//下面的步骤是skincrafter论坛的回复


1. Open up the form designer and expand the toolbox. 
2. Right click on the toolbox and hit "Choose Items". 
3. Click browse and load the skincrafter.net DLL file. 
4. A new control (SkinCrafter) will have appeared in the toolbox, drag it onto your form. 
5. Try to load the skin from the properties panel. If you get an error like me: 
6. Open up form.designer.cs (or in J#, just form.jsl). Expand every region and search for this.skinCrafter1.SkinFile = null. Replace it with this.skinCrafter1.SkinFile = "C://Path//to//file.skf"

 

翻译:

1、打开窗体设计器而且扩展工具栏(控件集合)

2、在工具栏上点击右键菜单,点击“choose items”子菜单

3、出现一个对话框,选择.NET Framework Compoents(默认),点击“Browse"按钮选择SkinCrafter安装目录下的(D:/Program Files/SkinCrafter3/SkinCrafterDemo/SkinCrafterDotNet/)skincrafter_.net2.0_vs2008.dll,

4、工具栏多一个skincrafter控件按钮,将它拖到窗体上

5、在属性对话框制定,制定SkinFile属性,选择皮肤文件

6、启动程序即可。

 

注意:以后无论添加的窗体不用上面的操作即可与添加的窗体相同的皮肤。

 

但是有个遗憾:

按照下面的他的帮助文件系的没有任何反映。

 

C# // The code in CODE SECTION has to be called in Main() function, // before Application.Run() using DMSoft; ... DMSoft.SkinCrafter.Init(); /* ------------ Begin of CODE SECTION ------------- */ DMSoft.SkinCrafter SkinOb = new DMSoft.SkinCrafter(); SkinOb.InitLicenKeys("SKINCRAFTER","SKINCRAFTER.COM","[email protected]","DEMOSKINCRAFTERLICENCE"); SkinOb.InitDecoration(true); /* ------------ End of CODE SECTION ------------- */ SkinOb.LoadSkinFromFile("D://Skin.skf"); SkinOb.ApplySkin(); Application.Run(new Form1()); SkinOb.DeInitDecoration(); DMSoft.SkinCrafter.Terminate();

 

请各位老大有相关经验指正,上面的代码如何使用。

你可能感兴趣的:(.net,properties,C#,search,工具,WPF)