C# GUI Forms / Inheritance / Polymorphism Flashcards
What does the label control do?
Displays images or uneditable text.
What does the TextBox control do?
Enables the user to enter data via the keyboard. It also can be used to display editable or uneditable text.
What does the Button control do?
Triggers an event when clicked with the mouse.
What does the checkbox control do?
Specifies an option that can be selected (checked) or unselected (not checked)
What does the combobox control do?
Provides a drop-down list of items from which the user can make a selection either by clicking an item in the list or by typing in a box.
What does the listbox control do?
Provides a list of items from which the user can make a selection by clicking one or more items.
What does the panel control do?
A container in which controls can be placed and organized
What does the numericupdown control do?
Enables the user to select from a range of numeric input values.
What is a form?

What happens when you drag an item from the toolbox onto the form?
Visual studio generates code that created the object and set its basic properties. The IDE maintains the generated code in a separate file using partial classes
What is the accept button property?
Default button thats clicked when you press enter
What is the auto scroll property?
bool value (false by default) that allows or disallows scrollbars when needed.
What is the cancelbutton property?
Button thats clicked when the escape key is pressed
What is the formborderstyle property?
Border style for the form (sizable by default).
What is the font property?
Font of text displayed on the form, and the default font for controls added to the form.
What is the text property?
Text in the forms title bar
What is the close method?
Closes a form and releases all resources, such as the memory used for the forms content. A closed form cannot be reopened.
What is the hide button?
Hides a form, but does not destroy the form or release its resources.
What does the show method do?
Displays hidden form.
What does the load even do?
Occurs before a form is displayed to the user.
What is an event handler?
GUIs are event driven. When the user interacts with a GUI component, the event drives the program to perform a task. A method that performs a task in response to an even it called an event handler.
What does an event handler look like?

How do you create the default event handler for a form control?
Double click on the form control.
What are the two parameter every event handler receives when its called?





























































