class Form1
{
...
public void buttonClick(object sernder, EventArgs arg)
{
...
form2.UpdateFields(name, lastName);
form2.Show();
}
...
}
class Form2
{
...
public void UpdateFields(string name, string lastname)
{
nameTextBox.Text = name;
lastNameTextBox.Text = lastname;
}
...
}