title: How to display information from MySQL in a textbox?
body: <p>I an new in creating programs in Visual Studio C#. I want to create a program that reads the information from MySQL and display the selected information in a textbox. What I have here is a code for displaying the information in a combobox.</p>
  
  <p>This is the code to display information from MySQL in a combobox:</p>
  
  <pre><code>private void comboBoxDistrict_SelectedIndexChanged(object sender, EventArgs e)
      {
          comboBoxDistrictName.Items.Clear();
          string query = "SELECT employee_lastname, employee_firstname, employee_middlename FROM employee WHERE employee_district = '" + comboBoxDistrict.Text.ToString() + "'";
          DBConn db = new DBConn();
          DataTable tbl = db.retrieveRecord(query);
          foreach (DataRow row in tbl.Rows)
          comboBoxDistrictName.Items.Add(row[0].ToString() + ", " + row[1].ToString() + " " + row[2].ToString());
      }
  </code></pre>
  
  <p>What I need is to display the information in a textbox. Please help. Thanks.</p>