WinForm Development UI Series

Source: Internet
Author: User

1. How to construct a beautiful main form

Mainly about how to a new form of the beautification process, involving a number of frequently needed properties I will emphasize its usage, and constantly update it, because the landlord is also exploring ....

The steps are as follows:

VS Create a new WinForm project, by default there is a Form1 form, I give the example renamed to BASECUSTOMEFRM, referring to a file called Cskin.DLL, let Form1 inherit a base class called Ccskinmain.

As follows:

The code code is as follows:

Using ccwin;using system;using system.collections.generic;using system.componentmodel;using System.Data;using System.drawing;using system.linq;using system.text;using system.threading.tasks;using System.Windows.Forms; namespace rabbit.core.baseform{public    partial class Basecustomefrm:ccskinmain    {public        basecustomefrm ( )        {            InitializeComponent ();        }        private void Basecustomefrm_load (object sender, EventArgs e)        {        }}}    

You will find the entire form has changed, not the original so blunt interface, then we can further design, to beautify it.

On the upper right corner of the Zoom Out button to beautify,

Reduce the appearance of the button to overwrite

this.minimizebox=true; The Zoom Out button is displayed, and the Flase button is deselected when it is clicked.

this.mininormlback= "Choose an image path"to achieve a change in appearance. My implementation effect is as follows:

。。。 Continue to update in .....

WinForm Development UI Series

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.