WinForm common controls and their common properties

Source: Internet
Author: User

Common controls:

1,button- the equivalent of a button, when clicked will generate an event

Enabled-Controls if the control can be used

Visible-used to determine whether the control is visible or invisible

2,CheckBox ,checklistbox- can let the user choose

3.ComboBox-drop- down list

1. fill in the data .

You can put in the items collection in the background to fill in the content

2. How to fetch the selected data

SelectedItem

Allow selection only -DropDownStyle

Default Check -SelectedIndex

4,DateTimePicker- used to select the date and time, and display the date and time in the specified format

Text- Chinese date

Value-datetime Type

5.Label LinkLabel- provides descriptive text for the control to run. The latter can support hyperlinks

6.ListBox- Displays the list from which the user can select

SelectionMode-

How to get the full contents of multiple selections in the background

SelectedItems Collection, traversing them

7.ListView- You can edit the collection of items, columns, and Groups

8,MaskedTextBox- Use the mask to set what the user should enter information, such as: Set the phone number

mask-settings allow input of strings such as: phone number or right, etc.

9.MonthCalendar- a monthly calendar from which the user can select a date

Maxselectioncount indicates the number of days that can be selected from the change calendar

SelectionStart Selectionend

NotifyIcon- Small icons that are displayed in the Windows taskbar at run time

visible-visible or hidden

Icon-style of icons displayed

Text-the words displayed when the mouse hovers over the icon

One,NumericUpDown- adds or decreases a single value when the user clicks the top and bottom button of the control

Increment-controls the number of increments or decreases per click

Maximum-Maximum number of values that can be added to

Minimum-Minimum number of values that can be reduced to

PictureBox- controls for displaying images

Image- not used

BackgroundImage is generally set background To change the background image

Layout Formatting

ProgressBar- fill bar indicating the progress of the operation to the user

Value-within the specified value range for minimum and maximum properties

Maximum-Upper Range

Minimum-Range Lower limit

style-marquee- Marquee Filler strips

Marquee...speed-Speed of filling

RichTextBox- provides advanced text input and editing

Text-\r\n can read spaces, line breaks and other special symbols

textbox- allows the user to enter text and provides a password character mask function

Multiline-the ability to control the input of edit text across multiple lines

ScrollBars-controls which scroll bars are displayed, such as: bottom or right, or both.

+tooltip- The informational information displayed when the user pointer is moved to a related control

Tooltiptitle-Title

Just drag in the control, and the miscellaneous property of all the controls will be one more

Is the introduction to setting up this control

The length of time, in milliseconds, that the InitialDelay pointer remains above a control

ReshowDelay determines how long the ToolTip for the control after the pointer moves from one control to the next control will be displayed

,treeview- Tree List

Tree-mounted List

WebBrowser- allows users to browse the Web in the window

Url-uri

WinForm common controls and their common properties

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.