title: How to copy a value of an array loaded into a listbox to a separate textboox.
body: <p>I am trying to do a project for a C# class. I have a program that loads data from a file into arrays then copies the arrays into list boxes. I want then to select the in the listbox with my mouse and then copy it into a listbox. I have tried this code:</p>
  
  <blockquote>
    <p>lblemployeeNameTwo.Text = listIstName.SelectedIndex.ToString();</p>
  </blockquote>
  
  <p>But that copies the index number of the array into the textbox and not the actual value so instead of Smith, it copies index 4 which represents smith.</p>
  
  <p>Thank you for helping me in advance! </p>