Computer Science, asked by Anonymous, 3 months ago

What is the output of the following Visual Basic Code ?

Attachments:

Answers

Answered by Anonymous
2

Explanation:

The code for the program below will allow the user to enter their name, select the day of the week that their birthday falls on this year and then choose the month of their birthday from the list box. When they click the button it should display all the information back to them.

Interface

Outputting3

Code when btnBirthday clicked

MessageBox.Show("Hello " & txtName.Text & vbNewLine & "Your birthday month is " & lstMonth.Text &

" and the day of the birthday this year is " & cmbDay.Text)

This is what happens when the button is clicked:

Outputting4

Example program 2 - 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.

Similar questions