private String _WAVFile = null; string[] files = Directory.GetFiles(@"E:\voices\", "*.wav"); foreach (string file in files) { DropDownList1.DataSource = file; DropDownList1.Items.Add(new ListItem(file)); } // When a button is cliked _WAVFile = Path.GetFullPath(DropDownList1.SelectedValue); ListBox1.Text = _WAVFile;
ListBox1.Items.add(_WavFile); instead of ListBox1.Text = _WAVFile;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)