C # skin usage (Skin Resources + download using instances)

Source: Internet
Author: User
Tags dotnet

Add reference irisskin2.dll
Create a new folder named skin to save skin files and copy the required Skin, such as mp10.ssk, to this directory.
Add the following in the form_load event:Code:

 Using  System;
Using System. Collections. Generic;
Using System. componentmodel;
Using System. Data;
Using System. drawing;
Using System. text;
Using System. Windows. forms;

Namespace Skin
{
Public Partial Class Form1: Form
{
Public Form1 ()
{
Initializecomponent ();
This . Skinengine1.skinfile = System. environment. currentdirectory + " \ Skin \\ " + " Mp10.ssk " ;
// Or use the following code
Sunisoft. irisskin. skinengine skin = New Sunisoft. irisskin. skinengine ();
Skin. skinfile = System. environment. currentdirectory + " \ Skin \\ " + " Mp10.ssk " ; // Skin File
Skin. Active = True ; // Activate
}
}
}

The running result is as follows:

This article source code download: http://dotnet.5d6d.com/thread-290-1-1.html

Add reference irisskin2.dll
Create a new folder named skin to save skin files and copy the required Skin, such as mp10.ssk, to this directory.
Add the following code in the form_load event:

 Using  System;
Using System. Collections. Generic;
Using System. componentmodel;
Using System. Data;
Using System. drawing;
Using System. text;
Using System. Windows. forms;

Namespace Skin
{
Public Partial Class Form1: Form
{
Public Form1 ()
{
Initializecomponent ();
This . Skinengine1.skinfile = System. environment. currentdirectory + " \ Skin \\ " + " Mp10.ssk " ;
// Or use the following code
Sunisoft. irisskin. skinengine skin = New Sunisoft. irisskin. skinengine ();
Skin. skinfile = System. environment. currentdirectory + " \ Skin \\ " + " Mp10.ssk " ; // Skin File
Skin. Active = True ; // Activate
}
}
}

The running result is as follows:

This article source code download: http://dotnet.5d6d.com/thread-290-1-1.html

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.