Apr 01 2008

Combobox bug

Published by turlach at 3:36 pm under Visual Studio, dotNet, winforms

If you assign the same arraylist as a datasource for comboboxes on the same form they will appear to be linked together.

cbobox.datasource = al

I did not try to duplicate this effect but the solution I used was to iterate through the members of the arraylist and individually add items to the combobox.

For i = 0 to al.count-1

cbobox.list.add(al(i))

next

Comments are closed at this time.

Trackback URI |