Easy 3-Step implementation of C#windowsform form beautification

Source: Internet
Author: User

1. You need to download IrisSkin4.dll or IrisSkin2.dll and ssk skin files.

2. Add a reference IrisSkin4.dll or IrisSkin2.dll to the project and copy the downloaded ssk skin file to the project .

3.c#main modified as follows

<summary>
The main entry point for the application.
</summary>
[STAThread]
static void Main ()
{
Application.enablevisualstyles ();
Application.setcompatibletextrenderingdefault (FALSE);


Form1 form = new Form1 ();
Skin settings (You can also use skins to load skin files in the constructor.) Skinfile Loading skin file) Note: load the skin remember is the skin file path Oh----"***.ssk" (the path of the skin file in the project)
Sunisoft.IrisSkin.SkinEngine skin = new Sunisoft.IrisSkin.SkinEngine ((System.ComponentModel.Component) Form, "* * *. SSK ");//Load skin
Skin. Skinfile = "***.SSK"; load skin
Skin. Titlefont = new System.Drawing.Font ("Microsoft Jas Black", 10F);//Set Title font
Application.Run (form);
}

4. The effect of the operation is as follows (the skin is varied here choose one to demonstrate)

Easy 3-Step implementation of C#windowsform form beautification

Related Article

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.