Question: Activity 1: Working with List Boxes Develop a simple application for the Ice-Cream Games, which captures information about athletes and populates a list box. You

Activity 1: Working with List Boxes Develop a simple application for the Ice-Cream Games, which captures information about athletes and populates a list box. You program should have the following elements: A text box to enter the name for the athlete - txtName A list box which lists all the country names which are participating in the events, for the user to choose from - lstCountry A list box which lists the ages from 16 to 25 years - lstAge A command button called Add_to_List to add the information entered in the textbox and the items selected from the country and age list boxes to a third list box called lstSummary. 1. This list box should display the name of the Athlete concatenated with the country chosen from the country list box and Age from the age list box. Use the following code. lstSummary.Items.Add(txtName.Text & , & _ lstAge.selectedItem.toString() & _ is from & _ lstCountry.selectedItem.toString() For example: an item in the list box might read John Doe, 23 is from Fiji. A command button called Remove from List which should remove the selected item from the lstSummary list. Confirm whether the user really wants to delete the selected item or not. Use the following code:

lstSummary.Items.Remove(lstSummary.SelectedIndex) A command button to exit the program.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!