UPDATE 2026
List Box - Answers lst
Enter a list, user can choose from the list
Items, Collection Property to enter strings in list (separate by enter)
Sorted Property to alphabetize list
Interface Goals - Answers Limit human error (list box for available options)
Combo Box - Answers cbo
Drop down menu
Items, Collection Property to enter strings in list (separate by enter)
Sorted Property to alphabetize list
Drop Down Property to change selection option (list for no typing options)
Checkbox - Answers chk, can select multiple
Radio Buttons - Answers rad OR rdo, MUTUALLY EXCLUSIVE, select only one
Radio buttons that aren't in the group box function as a separate group
Group Box - Answers CREATE group of radio buttons!
(No need to rename) Selects radio boxes to remove mutual exclusivity, select one in
that box, select one from unboxed group.
Radio Button Properties - Answers name.Checked (t/f) - determine if checked
Found with private bool (name.Checked <- returns true if checked)
List Box & Combo Box Properties - Answers SelectedIndex/Item - RETRIEVE
ITEM
Text
Sorted
Items
DropDownStyle
SelectionMode
List Box & Combo Box Events - Answers SlectedIndexChanged
TextChanged
Add Item to combo box - Answers cboName.Items.Add (specify item, add from
list/array)
Best with foreach loop (.Add(loop item name))
Radio Buttons Event - Answers CheckChanged
Creates/displays additional dialogue box after creating base dialogue box - Answers
Form CustomName = new RealFormName();
CustomName.ShowDialogue ();
Tag Property - Answers OBJECT TYPE:
From: Gets/sets data in a form (reference to object type), applicable to any type (cast
to datatype), or ToString
, DialogueBox Enumeration: - Answers Represents values a dialogue box can return
(ShowDialogue method returns member of this enumeration)
DialogResult = Result (can be set to a button for clicks)
Closing = puts results into other form (returns cancel value if not set to form)
Enumerations - Answers MessageBoxButtons
MessageBoxIcons
MessageBoxDefaultButton
DialogueResult
Naming a Class: - Answers Capital letters @ beginning
Naming custom properties vs. fields: - Answers Fields need prefix + uppercase name
Properties just uppercase
Inheritance - Answers Taking a base class (public) and creating DERIVED
CLASSES from them
Keep preestablished properties & methods, add new properties & methods
Simplifies application design
Creating subclasses Step 1: - Answers Declare:
subclass: baseclass
Constructor Blank:
public subname(){}
Constructor w/ base constructor:
public subclassName (parameters) : base (parameters)
this.Property = field (same as base class)
Call base class method/property: - Answers base.Method(parameters)
base.Property()
All objects have access to the base class properties and methods
Hide non-virtual method/property: - Answers public new type
Override virtual method/property: - Answers public override type
After subclass constructor: - Answers Go onto properties, overrides/virtual, methods
Type Class Properties: - Answers .Name - string, name of type
.FullName - string: namespace name & type name
.BaseType - Type that represents the class
.Namespace - namespace that contains the type
Type Class Methods: - Answers GetType(fullname) - Type object for specified name
when subclass casting is required: - Answers Not to subclass (part of base)
Needed when method accepts baseclass only
Abstract classes: - Answers Method has no code after parameters/get
Validation no code