winforms Flashcards
you can create radio button menu items within a group. When one radio button item is
checked, the others in the same group are automatically unchecked.
Radio Button Items
are commonly used to allow users to input and edit text.
TextBoxes
You might want to perform certain actions the user interacts with the TextBox. Common events include
TextChanged or KeyPress.
Event Handling
Represents the name of the control, which can be used to reference it in code.
NAME
gets or sets the current text in the TextBox.
TEXT
Determines whether the TextBox can display more than one line of text. If set to true, the TextBox
can have multiple lines.
Multiline
Specifies the character to be displayed in password input.
PasswordChar
Specifies whether the TextBox should display scrollbars. Options include None, Horizontal,
Vertical, and Both.
ScrollBar
Gets or sets a value indicating whether pressing the Enter key in a multiline TextBox control
creates a new line of text.
AcceptsReturn
Gets or sets a value indicating whether pressing the Tab key in a multiline TextBox control types
a tab character in the control instead of moving the focus to the next control in the tab order.
AcceptsTab
Gets or sets the border style of the TextBox. Options include None, FixedSingle, and Fixed3D.
BorderStyle
Gets or sets whether the TextBox control automatically converts characters to uppercase,
lowercase, or leaves them unchanged.
CharacterCasing
Gets or sets whether to use the system password character for password input.
UseSystemPasswordChar
gets or sets whether the TextBox control automatically wraps words to the beginning of the
next line when necessary.
WORDWRAP
gets or sets a value indicating whether the control is visible.
VISIBLE
gets or sets the tab order of the control.
TABINDEX
Occurs when the mouse pointer enters or leaves the control.
MouseEnter, MouseLeave
Occurs when the control receives or loses focus.
GotFocus, LostFocus
Occurs before and after the control validates its data.
Validating, Validated
Events associated with the form’s lifecycle.
FormLoad, FormClosing
Occurs when the control is clicked.
Click
Occurs when the control is double-clicked.
DoubleClick
Occurs when the Text Property of the control changes.
TextChanged
Handle Keyboard input events.
Keypress, KeyDown, KeyUp