title: Manipulating Array After Pulling From Text File
body: <p>I've been thoroughly combing StackOverflow and other sources for the answers to these problems, and have not been able to find a solution that would work cohesively with the steps I need to accomplish.</p>
  
  <p>Things I need to do:</p>
  
  <ol>
  <li>Create an array from a text file and display in a listbox <strong>(this is done and works)</strong></li>
  <li>Have user fill in a text box, click a button, and the array is searched for anything matching the text box's value</li>
  <li>Have the results of the search displayed in a separate listbox</li>
  </ol>
  
  <p>Here's what I've got so far, and it's fairly hacked together, so if there's anything that can be improved, naturally, I'd be all for that.
  `</p>
  
  <pre><code>Public Class Form1
  
  Dim lblName As Object
  Public colleges As String
  Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
      Dim colleges() As String = IO.File.ReadAllLines("Colleges.txt")
      ListBoxCollege.Items.AddRange(colleges)
  End Sub
  
  Private Sub btnSearchGo_Click(sender As Object, e As EventArgs) Handles btnSearchGo.Click
      Dim n As Integer, college As String
      college = txtCollegeSearchUserInput.Text
      n = Array.IndexOf(colleges(), college)
      If n &lt;&gt; 1 Then
          [[Needs to output into new listbox, preferably here]]
      End If
  End Sub
  </code></pre>
  
  <p>If there's anything else needed from VB, I can provide if necessary!</p>