Code: Select all
TForm myForm = new TForm(nil);
myForm.Caption = "Form name";
myForm.BorderStyle = bsDialog;
myForm.Position = poScreenCenter;
TComboBox myComboBox = TComboBox.Create(myForm);
myComboBox.Parent = myForm;
myForm.ShowModal;
myForm.Free;
Code: Select all
myComboBox.Items[0] = "Hello world!";
A working example would be much appreciated!