The EditContactForm doesn't do anything itself. The main program's code initializes the form, displays it, and if the user clicks OK displays the results in the TextBoxes.
Here's part of what's in the Edit button's Click event handler:
// Create the dialog.
editContactInfoDialog = new EditContactForm();
// Initialize the dialog.
editContactInfoDialog.firstNameTextBox.Text = firstNameLabel.Text;
editContactInfoDialog.lastNameTextBox.Text = lastNameLabel.Text;
// Display the dialog and check the result.
if (editContactInfoDialog.ShowDialog() == DialogResult.OK)
// Save the values entered by the user.
firstNameLabel.Text = editContactInfoDialog.firstNameTextBox.Text;
lastNameLabel.Text = editContactInfoDialog.lastNameTextBox.Text;
The code inside the "if" block is what copies the values back into the main form's TextBoxes.
If that code is there and it's not copying, then probably the problem is that the EditContactForm isn't returning OK. That would happen if its OK button's DialogResult property is not set to OK.
I would check that and if it doesn't work, let me know.
I have also downloaded the exercise from your site but i can not find it.
By that do you mean that you could not find the exercise? Or that you found it but couldn't see what made it work? My guess is that its the OK button's DialogResult property. It's often hard to notice the properties set at design time because they're not spelled out in code. (In fact, to make things more obvious, some developers set all non-default property values in code so it's easy to see what you changed.)
Let me know if this solves your problem.