
92
Programming Languages for mis
Since we want the GUI to display a message “Hello, World!” in the label,
we simply add a statement in the template of Button1 _ Click, as shown
in Listing4.1 by the bold line. We will return to explain the template later in
this chapter.
Listing4.1: Code for Button1 _ Click
Private Sub Button1_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles Button1.Click
Label1.Text = "Hello, World!"
End Sub
e coding window is shown in Figure4.5. Note that, in the added statement,
Label1 is an object, Text is the property (or attribute) of “Label1,” and the
command statement assigns “Hello, ...