Example Program 2 - Address Program: Interface
Example Program 2 - Address Program: Interface
Address Program
The code for the program below will allow the user to enter
various pieces of information. It will then use the information
in these form controls to create a message box with all their
information in.
Interface
MessageBox.Show("Address Details" & vbNewLine & "Street: " & txtNumber.Text & " " &
txtStreet.Text & vbNewLine & "Town/City: " & txtTown.Text & vbNewLine &
"County: " & txtCounty.Text & vbNewLine & "Postcode: " & txtPostcode.Text)
This is what happens when the button is clicked:
The code for when the button is clicked needs to follow the
following format:
End Sub