C# SkinCrafter 换肤控件的使用

本文介绍了如何在VS.NET2008中使用SkinCrafter为应用程序设置皮肤,包括添加SkinCrafter控件、指定皮肤文件等步骤,并尝试解决在使用过程中遇到的问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在网上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","support@skincrafter.com","DEMOSKINCRAFTERLICENCE"); SkinOb.InitDecoration(true); /* ------------ End of CODE SECTION ------------- */ SkinOb.LoadSkinFromFile("D://Skin.skf"); SkinOb.ApplySkin(); Application.Run(new Form1()); SkinOb.DeInitDecoration(); DMSoft.SkinCrafter.Terminate();

 

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

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值