Initial Windows programs

Source: Internet
Author: User

1. Properties

Form title Name form icons icon background picture backgroundimage

Background color BackColor Maximize button maximonbox Minimize button minimun

form border Style FormBorderStyle form initial position startposition

Form state windowsstate background picture extrude backgroundimagelayout form title Text

The form displays the status topmost closing window close () Help button HelpButton

Show form show () modal form ShowDialog () hidden form hide ()

2. Basic controls

Control Name control class name naming prefix

Tag Label LBL

Text box textbox txt

Combo Box ComboBox CBO

Pushbutton button BTN

Tag Label:

The image on the label displays the text

Text box textbox:

Maximum number of characters MaxLength whether you can enter multiple lines of text mulitiline as a password box, set the displayed password character PasswordChar whether to allow editing ReadOnly associated text

Combo box combobox:

The items in the combo box are the style of the DropDownStyle combo box associated with the text of the current selected item's index, starting with 0 SelectedIndex get the currently selected item SelectedItem

Buttons button:

Whether the control is available to Enable display of the file text alignment TextAlign

3. Circumstances of the event

Buttons button:

Click: Fires when a component is clicked.

Like what:

private void ... (...,...)

{

This. Close ();

}

Fourth section MessageBox message box

The simplest message box

MessageBox.Show ("Characters to display");

A message box with a caption

MessageBox.Show ("Characters to display", "input hint");

message box with caption, button

MessageBox.Show ("Characters to display", "input hint", messageboxbuttons.okcancel);

message box with caption, button, icon

MessageBox.Show ("character to display", input hint ", messageboxbuttons.okcancel,messageboxicon.information);

Initial Windows programs

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.