G
Guest
Hi All
The following VB6 Code snippet assigns the employee number
to each employee name loaded into a combo box,
as a new index.
cboEmployee.AddItem rsEmp.Fields("Name") ' this is processed in a Do Until
Loop
'then the new index is assigned
cboEmployee.ItemData(cboEmployee.NewIndex) = rsEmp.Fields("EmployeeNumber")
this NewIndex can be retrieved and used in code to uniquely identify
each employee
How do you do this in C#
Thanks
Christopher
The following VB6 Code snippet assigns the employee number
to each employee name loaded into a combo box,
as a new index.
cboEmployee.AddItem rsEmp.Fields("Name") ' this is processed in a Do Until
Loop
'then the new index is assigned
cboEmployee.ItemData(cboEmployee.NewIndex) = rsEmp.Fields("EmployeeNumber")
this NewIndex can be retrieved and used in code to uniquely identify
each employee
How do you do this in C#
Thanks
Christopher