Form Tools Exercise 1-10 Summary

Source: Internet
Author: User
Tags form tools

One, design the form, according to their own needs to find the corresponding properties of the form (control the same), according to the specifications of the different attributes to write code (or in the property bar of each control to modify). Forms some properties are the same as control properties and are used consistently.

Query address: https://msdn.microsoft.com/zh-cn/library/system.windows.forms (v=vs.110). aspx

Exercise address: http://www.cnblogs.com/KY2017/p/7562766.html.

1. Menu control MenuStrip can make options menu

You can also set the main menu to a different type as needed

2. Tool control, ToolStrip, can make various small buttons above the form, there are many types can be set according to the needs of their own

3. Modify the background color of the form

The form has properties that modify the background color of the form by this property.

This.backcolor=color. Color Finish Modification

4. Set the size of the form

A form or control has a size property that you can modify to design the size of the form or control

The Text property of the 5.label control, the Location property, the BackColor property (the label's background color) property

To display the text content of a form by modifying the Text property of the label

Location Property Usage

An instance of the point class is required to assign a value to location

BackColor Property Usage

Summary: To control a control or form, you need to understand what the corresponding property is, and then call and modify the data according to the property to achieve the purpose of the design.

6. The foreground color of the form

Corresponding attribute ForeColor usage:

7. The form's icon

The Icon property of the form is ICO, which can be pre-existing in the project's debug file, and the setup path will be simplified. Usage:

8. Mouse controls for a form

Form Tools Exercise 1-10 Summary

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.