I have figured out how to populate the comboboxes for an app I'm making from a database

this is not the actual code but is basically the way I'm populating them

for i = 0 to maxrows - 1
cbobox.items.add(dataset.tables("datatablename").Rows(i).Item(x))

next i

I need either to be able to manually assign an index value to each added item or at least figure out how vb.net manually assigns index values to these.

-Thanks

Well, I figured out that by default the index values count up from 0.... but I would still prefer to be able to assign the values manually.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.