2
Answers

How to get ComboBox to remember and reflect last choice

scyphe666

scyphe666

14y
3.6k
1
Hi. I've got a problem with my ComboBox (containing a list of all available logical drives) that won't remember my last selection, ie. : The combobox lists C:\ through F:\ I select D:\ and the rest of the program reflects it etc. but the combobox will still read C:\ with the SelectedIndex on C:\. in the SelectionChangeCommited-event: m_Current = m_DriveList[cmbDrives.SelectedIndex]; gets me the right driveletter etc. but stays at index 0 (C:\) any ideas? I've tried to set the SelectedIndex, but that doesn't do anything, it still stays on C:\ (index 0)
Answers (2)