I am developing a C# Windows platform application using VS 2005.
I set up a list box with the following statements:
DataSet ds1 = new DataSet();
SqlDataAdapter adapter1 = new SqlDataAdapter("SELECT DISTINCT tblCustomersNew.OfficeNumber from tblCustomersNew order by OfficeNumber;", _conn);
this.listBox5.DataSource = ds1.Tables;
this.listBox5.DisplayMember = "OfficeNumber";
How would I retrieve the specific value (OfficeNumber) selected from the listbox by the user?