therealzeta
Member
- Joined
- Aug 9, 2008
- Messages
- 19
- Programming Experience
- 5-10
I am just migrating to .net. In vb6 I used the following code to fill combos and listbox
While Not rs.EOF
cboStore.AddItem rs!storeName '' I fill the combo wit the store name
cboStore.ItemData(cboStore.NewIndex) = rs!id '' I store the id of that store
Call rs.MoveNex
Wend
Private Sub cboStore_Click()
If cboStore.ListIndex > -1 Then
cboStore.tag = cboStore.ItemData(cboStore.ListIndex) '' when I click the combo, i store the id of the store on the tag property
end if
I havent found those properties on .net. Could anybody tell what i could use???
While Not rs.EOF
cboStore.AddItem rs!storeName '' I fill the combo wit the store name
cboStore.ItemData(cboStore.NewIndex) = rs!id '' I store the id of that store
Call rs.MoveNex
Wend
Private Sub cboStore_Click()
If cboStore.ListIndex > -1 Then
cboStore.tag = cboStore.ItemData(cboStore.ListIndex) '' when I click the combo, i store the id of the store on the tag property
end if
I havent found those properties on .net. Could anybody tell what i could use???