tags:

views:

276

answers:

1

how to refresh combobox items in vb .net

A: 

If you're talking about a comboBox on a WinForm that's been assigned to a list of objects using the datasource property, I found that you must nullify the datasource setting and re-assign it every time your list changes.

i.e.

  attendanceDataFiles.DataSource = Nothing
  attendanceDataFiles.DataSource = myFileList.files
  attendanceDataFiles.DisplayMember = "displayName"
  attendanceDataFiles.ValueMember = "fileName"
John C. Lieurance MS