I am trying to get the value of the selected item in the listbox using the code below, but it is always returning null string.
DataSet ds = searchforPrice(Co
Get FullName in ListBox of files (full path) list (Thomas Levesque answer modificaton, thanks Thomas):
... string tmpStr = ""; foreach (var item in listBoxFiles.SelectedItems) { tmpStr += listBoxFiles.GetItemText(item) + "\n"; } MessageBox.Show(tmpStr); ...