An ArrayList contains Person objects with Properties Name, Age, Phone.
A Windows Form displays
- TextBoxes for these properties as well as
- a ComboBox for the Name and
- VCR Buttons First/Previous/Next/Last.

DataBinding should display the correct information in the textboxes no
matter if navigation happens through the VCR buttons or the combobox. The
combobox should always contain the same information as the txtName textbox.

I tried several combinations of defining the databinding. No matter what
combination of the following lines I used, I get errors from "stack overflow"
to metadata/type info displayed in the combobox.

txtName.DataBindings.Add("Text", myPersons, "Name")
txtAge.DataBindings.Add("Text", myPersons, "Age")
txtPhone.DataBindings.Add("Text", myPersons, "Phone")

cboName.DataBindings.Add("Text", myPersons, "Name")

cboName.DataSource = myPersons
cboName.DisplayMember = "Name"
cboName.ValueMember = "Name"

1) What is wrong?

2) How does the code need to be changed if objects should be added and
deleted from the arraylist by additional buttons?

thank you, herbert