Control (cracked version, limited. Net2005) and skin download address: http://www.cnblogs.com/liuxzh1026/archive/2006/08/19/480981.html
Embedded in the project:
Unzip the downloaded skin files and Irisskin2.rar, add the existing items to the project, add the skin files to the project, and refer the IrisSkin2.dll to the project. The build action in the skin file properties changes to an embedded resource. Change "Copy Local" in the referenced IrisSkin2.dll property to True.
To add an enumeration to your code:
public enum Skintype
{
Calmness,
Deepcyan,
Eighteen,
Emerald,
Glassbrown,
Longhorn,
MacOS,
Midsummer,
MP10,
Msn
Oneblue,
Page,
RealOne,
Silver,
Sportsblack,
Steelblack,
Vista1,
VISTA2,
Warm,
Wave,
Xpsilver
}
Add Call Method:
public static Sunisoft.IrisSkin.SkinEngine Se=null;
public static void Changeskin (Skintype st)
{
System.Reflection.Assembly Thisdll = System.Reflection.Assembly.GetExecutingAssembly ();
if (SE = = null)
{
SE = new Sunisoft.IrisSkin.SkinEngine (Application.openforms[0], Thisdll.getmanifestresourcestream ("Alldj.skin." + St . ToString () + ". Ssk"));
Se. Active = true;
for (int i = 0; i < Application.OpenForms.Count; i++)
{
Se. AddForm (application.openforms );
}
}
Else
{
Se. Skinstream = Thisdll.getmanifestresourcestream ("Alldj.skin." + St. ToString () + ". Ssk");
Se. Active = true;
}
}
public static void Removeskin ()
{
if (SE = = null)
{
Return
}
Else
{
Se. Active = false;
}
}
Call the Changeskin method to change the skin, call the Removeskin method to restore the system default skins.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service