what coding should i have if i wan to make the combo box like when i select one of the item in the combo box and it will display it in the edit box
Printable View
what coding should i have if i wan to make the combo box like when i select one of the item in the combo box and it will display it in the edit box
Code:// Make combo box simple drop down list
// rather hybrid edit & drop down
ComboBox1->Style = csDropDownList;
...
// Assign to edit box
if (ComboBox1->ItemIndex >= 0)
{
Edit1->Text = ComboBox1->Items[ ComboBox1->ItemIndex ];
}