C # common controllability of some controls

Source: Internet
Author: User
Form:
Controlbox: remove the window by sequence (maximize, minimize, and close) and remove the "System Menu" from the left pane 」
Opacity: controls the transparency of the window.
Activecontrol: Specifies the focus of the first batch in the window.
Backcolor: specifies any text and hidden background colors in the window.
Forecolor: any text and hidden colors in the window
Formborderstyle: controls the external and class types of window frames.
Location: This is a joint property. It specifies the upper-left corner of the window to correspond to the cursor of its container.
Maximizebox: whether to use the "maximize" command to disable the system menu and topic"
Maximumsize: specifies the maximum window size.
Minimizebox: the "minimal" command on the system menu and topic is disabled for logging"
Minimumsize: specifies the minimum size of the window.
Windowsstate: Specifies the initial response when the window is displayed for the first time. (Normal), as well as minimized and maximized

ComboBox:
Dropdownstyle

Checkbox:
Checkalign: Specifies the Text Location of the control corresponding to the selection box.
Checkeditems: Selected selections
Checkonclick: select a shard once

// Clear the ComboBox ticket
Items. Clear ();
// Add: add the category to the ComboBox category list
Items. Add ("Great shevington ");

Menustrip:

, The method is to press & followed by a letter while holding down the alt button. When the alt parameter is set, f at the beginning of the file displays a downstream operator. For example, when & file is added to the menustrip, the "file" menu is displayed on the menustrip. After the operation, when you press ALT, "F" displays a "Next" menu.

When "-" is entered, it will become a separate menu
Shortcutkeys
Showshortcutkeys: final applicationProgramIndicates whether a shortcut is displayed on the menu During Operation
Diplaystyle: the menu bar shows the image and text name.
Checked: A checked box is displayed when a menu bar is selected. When it is true, a check box is displayed.
Checkonclick: If this parameter is set to true, the system automatically selects or removes the selected menu.
Tooltiptext: Specifies a tooltip. When you use the mouse to mark the mouse over the menu, this prompt will automatically pop up.

Right-click the menu on the menu, and select "navigation menu dropdownitems" for the menu. You can click "navigation menu set 」, you can sort and add new dishes, mobile dishes, and configuration dishes.

Textbox:

Contexmenustrip: to set the right strip, you must first define the contexmenustrip control in the window.
Focus (): Enable the front-end control to gain focus
Clear (): clear content in the control

Contexmenustrip:
Sourcecontrol: the control in which the context-sensitive control is being accessed.

Savefiledialog:

Addextension: When the value is true, a dialog box is allowed to append the extension name of the file specified by the ultext encoding after the file name, provided that the extension name of the file is omitted by the extension.
Defaultext: if the extension name is not specified when the extension is provided, the extension name is used.
Filename: the name of the selected file.
Initiadirectory: The night object used in the conversation box
Overwriteprompt: if it is true, a warning will be issued to the user when the existing file with the same name is overwritten. To use this function, validatenames must also be set to true.
Title: Subject of the conversation box
Validatenames: Specifies whether to validate the file sentence.

Errorprovider:

Blinkifdifferenterror: the icon will flash only when the error is different from the current error
Alwaysblink: the icon will flash every time there is a mistake
Blinkrate: the speed at which the error icon blinks. The default frequency is 250 milliseconds (four flashes per second)

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.