"2017-04-25" WinForm common controls, menus and toolbars, tab and borderless form creation

Source: Internet
Author: User
Tags border color

First, public controls

1. Button Buttons
+ Layout
-AutoSize button size automatically adapts to the length of content inside
-Location
-Margin control and control margin
-Size Current dimension

+ Behavior
-Enabled is available
-TabIndex the tab index value corresponding to the control
-TabStop The index value when the TAB key for the control is disabled
-Visible display and hide

+ Appearance
-BackColor Background color
-BackgroundImage Background map
-BackgroundImageLayout Background Map layout
-Cursor mouse-in mouse style
-Flatappearance * Set Border color border width, mouse on the background color, mouse down when the background color and FlatStyle with the use of
-FlatStyle * in conjunction with Flatappearance
-Font text
-ForeColor Front View
-Image Image
-ImageAlign Set Picture location
-Text to display
-TextAlign text alignment
-Textimagerelation the relative position of the image and the text

2. CheckBox Multi-Select button
Appearance
-appearance control the appearance of the check box
-CheckAlign determines the position of the check box in the control
-Checked is checked, True is selected, False is not selected
-CheckState Controls whether the three selected states

3. CheckedListBox Multiple selections check box, from the small arrows on the control to open to add

-CheckOnClick whether to click the Toggle option

4. ComboBox drop-down option to add from the small arrow on the control

-DropDownStyle set to DropDownList control after startup option is read-only non-modifiable

Dynamically loading data in the dropdown option in the background program

One item is selected by default

0, the first one is selected by default.

5. DateTimePicker Time Date control

-MaxDate Maximum Date

-MinDate Minimum Date

Value:

6. lable display text

7, linklable hyperlink appearance of lable

8, the ListBox selection, a bunch of inside choose a pile

-SelectionMode Choose MultiSimple this as can be multiple choice

9. MaskedTextBox can control the text box for the string format to be entered

-Mask settings to control the format

10. MonthCalendar is also a time date control, expand style

-Maxselectioncount Default selected Days

Value:

11. NotifyIcon Tray Tool Desktop bottom right corner icon

-Icon Small Icons

-Text with small icon display

In the above binding a right-click menu ContextMenuStrip is the QQ small icon look

Double-click the small tray icon to minimize and maximize

12, NumericUpDown can only enter the number, the button automatically add and subtract

-Maximun Max to several

-Minimun min to few

13, Pictuerbox to place pictures with

14. ProgressBar Progress bar

-How long does the value progress bar grow

15. RadioButton radio button

Grouping: Placing the same group of RadioButton in a panel control in a container

16. RichTextBox Text Field Wrap

-MaxLength input Maximum character length

-ReadOnly read-only property

-WordWrap changes to false to not wrap

-ScrollBars out scroll bar

17. TextBox is also a text field

-PasswordChar Password Mask

18, the ToolTip has this control after the form interface can see the control will be more than one miscellaneous property, in the control's miscellaneous properties can be set after the mouse move in the prompt

-Tooltiptitle Settings tab

-ToolTipIcon Small Icons

19, WebBrowser display the page, right-click to view the code

Second, menu and tool bar

1, MenuStrip menu. Drag into the form right-click to insert the standard type, all of which have

Horizontal line in the menu: Enter a minus sign

or right-click to insert

Set Small icon: right-set image.

Set shortcut keys: Property Shortcutkeys

2. StatusStrip bottom Menu bar

3. ContextMenuStrip Right-click menu

The corresponding ContextMenuStrip on the ContextMenuStrip property bindings in the properties of the control to open the right-click menu

4. ToolStrip Toolbar

5. ToolStripContainer Toolbar Container

"2017-04-25" WinForm common controls, menus and toolbars, tab and borderless form creation

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.