0% found this document useful (0 votes)
78 views

Example Program 1 VB

This program allows a user to enter their name and select their birthday month and day of the week from dropdown lists. When the user clicks a button, a message box displays greeting the user by name and stating their selected birthday month and day.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
78 views

Example Program 1 VB

This program allows a user to enter their name and select their birthday month and day of the week from dropdown lists. When the user clicks a button, a message box displays greeting the user by name and stating their selected birthday month and day.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Example program 1 -

Birthday Program
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

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:

You might also like