winform learning (7) Label controls, Button controls, TextBox controls

Label control is control System.Windows.Forms.Label class.

Role: mainly used to provide descriptive text for other controls, such as: user name on the login form, password (input box in front of the word)

 

Button control is a control System.Windows.Forms.Button class.

Role: treatment is to write the Click event of the most commonly used and MouseEnter event code.

 

TextBox control is control System.Windows.Forms.TextBox class. (Text input box)

It provides text input and editing features

AcceptsReturn property and AcceptsButton property to be used in combination, will AcceptsReturn set to False, AcceptsButton fill a button button does not wrap when the text box and press Enter, this button will execute the binding method.

The default event is the TextBox TextChanged, and when the characters in a text box to change triggered the event.

Guess you like

Origin www.cnblogs.com/1016391912pm/p/11461250.html