Hello,
I have a CSV file containing contact information and what they prefer to be called. It's for a classroom setting:
![]()
(I changed the file to generic information to protect people and yadda yadda)
I was given a sketch of exactly how she wanted it, so I made the interface exactly how she drew it for me:
![]()
I have created a structure for each of the pieces of information that will be stored. There can be unlimited "nicknames". She would just like to be able to scroll through the contacts using the interface above and edit the information as needed. Here's what I got so far as far as the code:
I'm kind of stuck as to how to have the file automatically open upon the running of the program, and how to separate the different cells into the different text boxes. It's obviously much easier if you're putting it all into one textbox, but that's all I have ever done in my little VB experience.
Any help would be appreciated! :)
I have a CSV file containing contact information and what they prefer to be called. It's for a classroom setting:

(I changed the file to generic information to protect people and yadda yadda)
I was given a sketch of exactly how she wanted it, so I made the interface exactly how she drew it for me:

I have created a structure for each of the pieces of information that will be stored. There can be unlimited "nicknames". She would just like to be able to scroll through the contacts using the interface above and edit the information as needed. Here's what I got so far as far as the code:
Code:
Imports System.IO
Public Class frmContactsManager
Private Structure Contact
'variables
Public FirstName As String
Public LastName As String
Public PhoneNumber As String
Public Nicknames() As String
End Structure
Dim ContactReader As StreamReader
Private objContact As Contact
Private Sub lblLastName_Click(sender As System.Object, e As System.EventArgs) Handles lblLastName.Click
End Sub
Private Sub btnNextContact_Click(sender As System.Object, e As System.EventArgs) Handles btnNextContact.Click
End Sub
Private Sub btnPrevious_Click(sender As System.Object, e As System.EventArgs) Handles btnPrevious.Click
End Sub
Private Sub lblContactNumber_Click(sender As System.Object, e As System.EventArgs) Handles lblContactNumber.Click
End Sub
Private Sub lblContactNumLbl_Click(sender As System.Object, e As System.EventArgs) Handles lblContactNumLbl.Click
End Sub
Private Sub lblNicknames_Click(sender As System.Object, e As System.EventArgs) Handles lblNicknames.Click
End Sub
Private Sub lblPhoneNumber_Click(sender As System.Object, e As System.EventArgs) Handles lblPhoneNumber.Click
End Sub
Private Sub lblFirst_Click(sender As System.Object, e As System.EventArgs) Handles lblFirst.Click
End Sub
Private Sub txtLastName_TextChanged(sender As System.Object, e As System.EventArgs) Handles txtLastName.TextChanged
End Sub
Private Sub txtPhoneNumber_TextChanged(sender As System.Object, e As System.EventArgs) Handles txtPhoneNumber.TextChanged
End Sub
Private Sub txtFirstName_TextChanged(sender As System.Object, e As System.EventArgs) Handles txtFirstName.TextChanged
End Sub
Private Sub txtNicknames_TextChanged(sender As System.Object, e As System.EventArgs) Handles txtNicknames.TextChanged
End Sub
Private Sub frmContactsManager_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
End Sub
End Class
Any help would be appreciated! :)