Populate a ComboBox with...

aruizrivera

New member
Joined
Aug 7, 2009
Messages
1
Programming Experience
1-3
I need some help.. The problem is that I have a combobox that I want the list change when I check the checkbox.
 
Handle the CheckedChanged event of the CheckBox and change the list of items in the ComboBox appropriately. Depending on the circumstances you might Clear the Items collection and then Add new items, you might set the DataSource or you might clear and repopulate the object assigned to the DataSource.
 
Re:How-To Populate a ComboBox with...

private sub check_checkedchanged(sender as object,e as eventargs) handles checkbox

'coding chang combox items such as :::

with combox

.items.clear()

for i as integer =0 to 1

.items.add('items text')

next

end with

end sub
 
Last edited by a moderator:

Latest posts

Back
Top