The Code Prompts the user for the ID of the employee. The Code should use LINQ to search for the ID in a comma delimited text file and select the ID and the rest of the information on the line. The code then should display the information from the text file into its respective textbox. I will add the structure, array, and search code below. The code does not work after Select Name.ID … in BtnSearch_Click.
Imports System.IO Public Class frmEmployee Structure PersonalInformation Dim ID As String Dim FirstName As String Dim LastName As String Dim Middle As String Dim Address As String Dim AptRoom As String Dim City As String Dim State As String Dim ZipCode As String Dim MainPhone As String Dim AlternatePhone As String Dim Email As String Dim SSN As String Dim Birthday As String Dim MaritalStatus As String Dim Gender As String Dim DateRecorded As String End Structure Public Employee() As PersonalInformation Private Sub LoadInfo() Handles Me.Load Dim Line As String Dim Data(16) As String Dim Individual() As String = IO.File.ReadAllLines("Employees.txt") ReDim Preserve Employee(Individual.Count - 1) For i As Integer = 0 To Individual.Count - 1 Line = Individual(i) Data = Line.Split(","c) Employee(i).ID = Data(0) Employee(i).FirstName = Data(1) Employee(i).LastName = Data(2) Employee(i).Middle = Data(3) Employee(i).Address = Data(4) Employee(i).AptRoom = Data(5) Employee(i).City = Data(6) Employee(i).State = Data(7) Employee(i).ZipCode = Data(8) Employee(i).MainPhone = Data(9) Employee(i).AlternatePhone = Data(10) Employee(i).Email = Data(11) Employee(i).SSN = Data(12) Employee(i).Birthday = Data(13) Employee(i).MaritalStatus = Data(14) Employee(i).Gender = Data(15) Employee(i).DateRecorded = Data(16) Next End Sub Private Sub BtnSearch_Click(sender As Object, e As EventArgs) Handles BtnSearch.Click LoadInfo() Dim IDN As String IDN = InputBox("Please enter the employee's ID number to search", "ID Search") Dim IDQuery = From Name In Employee Order By Name.ID Ascending Let NameID = Name.ID Where NameID = IDN Select Name.ID, Name.FirstName, Name.LastName, Name.Middle, Name.Address, Name.AptRoom, Name.City, Name.State, Name.ZipCode, Name.MainPhone, Name.AlternatePhone, Name.Email, Name.SSN, Name.Birthday, Name.MaritalStatus, Name.Gender, Name.DateRecorded txtID.Text = Name.ID txtFirstName = Name.FirstName txtLastName = Name.LastName txtMiddle = Name.Middle End Sub
✓ Extra quality
ExtraProxies brings the best proxy quality for you with our private and reliable proxies
✓ Extra anonymity
Top level of anonymity and 100% safe proxies – this is what you get with every proxy package
✓ Extra speed
1,ooo mb/s proxy servers speed – we are way better than others – just enjoy our proxies!
USA proxy location
We offer premium quality USA private proxies – the most essential proxies you can ever want from USA
Our proxies have TOP level of anonymity + Elite quality, so you are always safe and secure with your proxies
Use your proxies as much as you want – we have no limits for data transfer and bandwidth, unlimited usage!
Superb fast proxy servers with 1,000 mb/s speed – sit back and enjoy your lightning fast private proxies!
99,9% servers uptime
Alive and working proxies all the time – we are taking care of our servers so you can use them without any problems
No usage restrictions
You have freedom to use your proxies with every software, browser or website you want without restrictions
Perfect for SEO
We are 100% friendly with all SEO tasks as well as internet marketing – feel the power with our proxies
Buy more proxies and get better price – we offer various proxy packages with great deals and discounts
We are working 24/7 to bring the best proxy experience for you – we are glad to help and assist you!