Question
Visual Basic- The file Nations.txt contains the names of the 193 member nations of the United Nations. Write a program that initially displays all the
Visual Basic- The file Nations.txt contains the names of the 193 member nations of the United Nations. Write a program that initially displays all the nations in a list box. Each time a letter is typed into a textbox, the program should reduce the displayed nations to those beginning with the letters in the textbox. The picture below shows the status after the letters "Ma" are typed into the textbox. At any time, the user should be able to click on the name of a nation to have it appear in the textbox. USE A LINQ QUERY. Also compare the text ToUpper.
The code I have so far is:
Public Class frmUnitedNations Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load lstOutput.Items.AddRange(IO.File.ReadAllLines("Nations.txt")) End Sub
Private Sub txtCountry_TextChanged(sender As Object, e As EventArgs) Handles txtCountry.TextChanged
End Sub End Class
United Nations -la x Ma Madagascar Malawi Malaysia Maldives Mali Malta Marshall Islands Mauritania MauritiusStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started