Hi,

I created 3 combobox: comboBox1, comboBox2 and comboBox3.

I wish to select the require combobox according to different case. I tried to use comboBo(i) but it return me error.For example,

for (int i=0; i=3;i++)
{
textBox1->Text=comboBox(i)->SelectedItem->ToString();
}

The code return me error on selecting "comboBox(i)". I knew the syntax is wrong, but how can I select the respective comboBox i required?

Thanks.

Any idea? I need this in urgent...thanks

Any idea? I need this in urgent...thanks

You ALWAYS need it "urgent". Stop bumping your threads, it's annoying, against the rules and won't get you help any sooner.

With that said, you need to take a look at GetDlgItem(). It's a function to get all the items from an dialog in a 'array' sort of way.

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.