Robert Walker 0 Newbie Poster

when running program I can see all 9 items of data are loaded into myComboBox, but when it displays on the screen all I get is 9 instances of "Test1.Global+ListCodes". What do I need to use in the DisplayMember spot?
I've tried original field name of "Name1", "test.codeName"

PublicStructure ListCodes
Public codeName AsString
Public codeValue AsString
EndStructure

...
Dim myData AsNew ArrayList
Dim test As ListCodes

While myReader.Read()
test = New ListCodes
test.codeName = myReader.Item(0)
test.codeValue = myReader.Item(1)
myData.Add(test)
EndWhile

myComboBox.DataSource = myData
myComboBox.DisplayMember = ??????

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.