Winform: Login form of the student information management system, winform form skin

Source: Internet
Author: User

Winform: Login form of the student information management system, winform form skin

Well, I have been learning this piece of knowledge for a long time. I feel that the learning progress is still slow. I have been learning Winform recently. I have to say some login form design. These days are just a small success, I have read a lot of this knowledge and learned that it is a long process to create a student information management system. However, from today on, I have been building a student information management system and I also use the database knowledge, I plan to learn about the database myself. Today I will take a look at the design of the logon window of the student information management system. The following is an example:

 

This knowledge is based on the C # language and. NET Framework Platform. I am still using the familiar Development Environment VS2012. I feel that VS2013 and VS2015 have not changed much recently. I decided to use VS2012 to build a logon window for the student information management system.

First, create a Windows form application under VS2012 named WindowsForms. the login window to be created is designed on this basis. This process is not described in detail.

The second step is to modify the name of the login window. Click Form Design and find the Text (set form name) attribute in the attribute column to change the name to the student information management system, click the Form Design button again, that is, the name is successfully modified.

 

Then, modify some properties of the form: 1. By default, the MaximizeBox (window maximization) and mini-mizbox (window Minimization) are True, depending on the situation, it will not be modified here. 2. By default, the StartPositio (start position) attribute of the form is WindowsDefaultLocation (random position) when the program is run. Change it to CenterScreen (center position of the screen ). 3 by default, the ShowIcon attribute (whether to display the icon in the Form title bar) is True and the ShowInTaskbas attribute (whether the form is displayed in the Windows taskbar) is True. 4 by default, the FormBorderStyle attribute is Sizable (the size of the Two-line window can be changed). Change this attribute to FixedSingle (the size of a single line cannot be changed ). Other attributes can be changed as needed. The login window of the student information management system is relatively simple, so there is no excessive form design.

In addition, it is the background of the login window, which is also set in the property. Find the property BackgroundImage (background image), click this property, a dialog box for selecting resources appears, and add the image by yourself, import the image you want to create a background to the box, and click OK to import the background image.

 

Then I want to add controls in the form design. Here, three controls are required for a simple login window. The first one is Lable, the function is to provide necessary textual descriptions or explanations for the control runtime. Add two Lable controls to the form: Change the attribute Text of the first control to the logon name :, change the attribute Text of the second control to the logon password :. The second is TextBox, which allows users to enter text and provide password masking. Add two TextBox controls to the form. The first control is the information entered by the logon name, and the second control is the text entered by the logon password. The mask attribute of the password is required here, click the control and change its property PasswordChar. The third control is the Button. Add two Button controls to the form. Change the first control's attribute Text to OK, and the second control's attribute Text to cancel. The process of adding controls to the form is basically complete.

 

Finally, compare the design drawing of the login window you want to design and debug it until it is executed normally. Start debugging and complete the login window design of the student information management system.

 

The above steps are a simple logon window for the student information management system. In the future, we will make necessary modifications and designs. Today, we are very satisfied. I am also thinking about designing a simple calculator form program, and now I am opening a header for this knowledge.

 

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.