Question: This has to be completed using Visual Basic and by utilizing list boxes and loops. Locate Nations Create a form containing a label, a text
This has to be completed using Visual Basic and by utilizing list boxes and loops.

Locate Nations Create a form containing a label, a text box, and a list box. The file Nations.txt (found in the folder ProgramslCh06 Text Files for Exercises) contains the names of the 193 members of the United Nations in alphabetical order. Copy the contents of the text file and paste them into the String Collection Editor of the list box. See Fig. 6.76. Write a program that facilitates locating a nation in the list. When the user types a single letter into the text box, the first nation beginning with that letter should be selected in the list box. When the second letter is typed, the first nation beginning with the pair of letters should be selected. Th there is no nation beginning with the letters in the text box, a message box should appear so as to inform the user. Hint: The text box's default event procedure, Text Changed, should be used in the program e process should continue until the sought after nation is found. In the event that Find Nation- ? Type letters into text box Somalia South Aftica South Sudan Spain Sn Lanka Sudan Suriname Swaziland FIGURE 6.76 Possible outcome of Exercise 40
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
