Professional Documents
Culture Documents
l) 5 3 ^ (2+1)
-22
3. Explain the term event driven.
The term event driven means code is executed in response to events. An
event occurs when a user interacts with an object; for example, the clicking
of a button closes an application. The event is the user clicking the button,
and the button is the object.
4. List the controls presented in this chapter and explain if and how the
user can interact with each one.
The radio button and button are used for the user to click, the label is used
for the display of text, menu strip to add a strip on the top of the program
that contains menu items, and group box control to group objects together
(such as radio buttons).
5. List at least one difference in the way a form looks between the Design
window and at run time.
One difference between a form at run time and a form in the Design window
is that at run time, you cannot change anything in the program; whereas in
the Design menu: properties can be changed, labels can be moved around,
etc.
9. Write the statements needed for the Click event procedures of radSum
and radDifference bases on the following application. Assume the first
lavel is named lblMessage and the second is named lblresult:
A: radSum
Me.lblResult.Text = 5 + 3
Me.lblMessage.Text = The sum of x and y is 8
B: radDifference
Me.lblResult.Text = 5-3
Me.lblMessage.Text = The difference of x and y is 2