Using Functions and Working with Strings
Function - A collection of statements which performs a task and then returns a value to the
program that executed it. To declare a function you need keywords Function, End Function.
Passing Information to Functions
Variables Calculations Message Boxes
Comments In C# use / to create comments
Ending a line All lines of code must end with a semicolon ;
Text Box - The text box is one of the controls that you can use in C# to get information from the
user. The user can t
If Statements, Select Case Random Numbers
Relational Operators - Usually the condition tested by an If statement is done with a relations
operator. Relational operators are widely used in high school math classes. A list of relational
operators for Visual
Message Boxes - The only required parameter in the message box is the message. All other
parameters such as caption, button, icon, and default are optional. Message button parameters are
Message - displays the message inside the
Do While Loop - The Do While loop has 3 important parts. The Do while loop is a pre-test loop
which means the expression is tested before the statements are executed.
Expression - This is tested for a True or False Value
Body - Statement
List Boxes - A list box displays a list of choices that the user can pick from. The standard prefix
for a ListBox is lst. To add items to the List Box in design mode click on the Items property then
click on the three dots to
Variables & Calculations
Text Box - The text box is one of the controls that you can use in VB to get information from the
user. The user can type information into a text box. The text property of a textbox holds the
information that is in the textbox.
Radio Buttons Check Boxes List-boxes Combo-boxes
Radio Buttons Are useful when you want the user to be able to select one choice from several
Group Boxes It is a good idea to put all radio buttons from a group into a group box.