D
Don
Me.cbxLocation.Items.AddRange(New Object() {"Item0", "Item1", "Item2", "Item3"})
Me.cbxLocation.DropDownWidth = 114
Me.cbxLocation.Location = New System.Drawing.Point(72, 16)
Me.cbxLocation.Name = "cbxLocation"
Me.cbxLocation.Size = New System.Drawing.Size(112, 21)
Me.cbxLocation.TabIndex = 0
'Should return "Item0"
cbxLocation.GetItemText(0) <=returns 0
'Should return "Item1"
cbxLocation.GetItemText(1) <=returns 1
'Should return "Item2"
cbxLocation.GetItemText(2) <=returns 2
'Should return "Item3"
cbxLocation.GetItemText(3) <=returns 3
GetItemText seems to be returning the INDEX of the requested item rather than the item TEXT. What in the world would cause such a thing?
Thanks a lot!
Me.cbxLocation.DropDownWidth = 114
Me.cbxLocation.Location = New System.Drawing.Point(72, 16)
Me.cbxLocation.Name = "cbxLocation"
Me.cbxLocation.Size = New System.Drawing.Size(112, 21)
Me.cbxLocation.TabIndex = 0
'Should return "Item0"
cbxLocation.GetItemText(0) <=returns 0
'Should return "Item1"
cbxLocation.GetItemText(1) <=returns 1
'Should return "Item2"
cbxLocation.GetItemText(2) <=returns 2
'Should return "Item3"
cbxLocation.GetItemText(3) <=returns 3
GetItemText seems to be returning the INDEX of the requested item rather than the item TEXT. What in the world would cause such a thing?
Thanks a lot!