Hi there,

I'm trying to get a listbox to display selected items from multiple combo boxes in a single line. Currently I have two combo boxes and I would to have their selections displayed in a single line inside my listbox with a press of a button

im using
listbox.items.add(combobox1.selecteditem);
listbox.items.add(combobox2.selecteditem);

but its displaying the items on different lines

any help would be appreciated,
thanks

With each add, it would create a new item in the list. You should try this:

listbox.items.add(combobox1.selecteditem + " " + combobox2.selecteditem);

Please describe more as to what you want to achieve.

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.