I just need someone to review my VB code
This is the assignment:
Write a VB program that uses an Array of Strings to store state names as read in from the text file StatesBySize.txt. I will make this file available for your use on our course Sakai web page (Under Resources / Assignments folder). My suggestion: On your C-Drive create a folder called VB2012 (its full name would be C:VB2012â€. We will put all data files used for this course into that folder. If you do this then the call to ReadAllLines will refer to “C:VB2012StatesBySize.txtâ€
This is my code:
Public Class Form1
Private Property From As Object
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim States() As String = IO.File.ReadAllLines(“C:VB2012StatesBySize.txt”)
For i As Integer = 0 To States.Count – 1
lstbx1.Items.Add(States(i))
Next
End Sub
Private Sub btn1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn1.Click
Dim txtbx1 As Integer
Dim txtbx2 As Integer
Dim states() As String = IO.File.ReadAllLines(“C:VB2012StatesBySize.txt”)
If Not Integer.TryParse(From.text, txtbx1) Or txtbx1 < 0 Or txtbx1 > 50 Then
MessageBox.Show(“Please Input Valid Number For From:”, “Error (Shelina Lewis”)
Return
End If
lstbx1.Items.Clear()
For i As Integer = txtbx1 – 1 To txtbx2 – 1
lstbx1.Items.Add(states(i))
Next
End Sub
End Class
Our guarantees
Study Acers provides students with tutoring and help them save time, and excel in their courses. Students LOVE us!No matter what kind of essay paper you need, it is simple and secure to hire an essay writer for a price you can afford at StudyAcers. Save more time for yourself. Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
Money-back guarantee
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.
Read moreZero-plagiarism guarantee
Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.
Read moreFree-revision policy
Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.
Read morePrivacy policy
Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.
Read moreFair-cooperation guarantee
By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.
Read more