shiftingspanner 0 Newbie Poster

Hi,

I'm a bit of a numpty when it comes to programming so please excuse the silly question and I'm not even sure this is the correct forum to post it on but here goes...

I'm trying to upgrade some VB6 to Visual Basic 2008. I'm trying to create a combobox with two pieces of text in the pull down of which only the first is actually used. More specificaly I want the name and the text associated with an item in the pull down list and both displayed in the field when selected but I only use the name for further processing.

I find that the .SetItemString overwrites the CHAIN_ID entry with the TXTLG. I could concatenate the two into a single string but getting the two columns to line up nicely gets tricky if you're not using a proportional font and extracting just the CHAIN_ID gets messy too.

Any wise words of wisdom?

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.