Had a look at your code:
Code:
> combocomport->Items->AddObject("1",combocomport);
> combocomport->Items->AddObject("2",combocomport);
Not sure what the purpose of this is. Why are your storing the pointer to the ComboBox in the ComboBox's own string list?
You can access the pointers in the string list by calling:
combocomport->Items->Objects[n]
However, the pointer value returned will always be the same the Sender pointer in an event, such as the ComboBox's OnClick event:
Code:
void __fastcall TfrmComminit::combocomportClick(TObject *Sender)
Why don't you just initialise the boxes with string values, and respond in an click event based on the newly selected index value or text string.
You could store this somewhere as either an integer index value, which maps to a baud rate, or a string which maps to a baud rate?