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