Professional Documents
Culture Documents
Lecture 5 Looping Statements
Lecture 5 Looping Statements
Lecture 5 Looping Statements
Lecture 5
INTERMEDIATE PROGRAMMING
• Loops that never end are called infinite loops. Using an infinite loop is
rarely needed except in cases where somewhere in the body of the loop
a break operator is used to terminate its execution prematurely.
do
{
executable code;
} while (condition);
• Load event of a form: occurs when an application is started and the form
is displayed for the first time
• Syntax:
–object.Items(Index);
• Syntax:
–object.Items.Count;
• SelectedIndex property:
–Contains the index of the selected item in the list
–If nothing is selected, it contains the value -1