How can I make pressing a button on one form1 press another button on another form2 and form2 closes ??
// cambio el boton a public
public void btnoperator_Click(object sender, EventArgs e)
{
}
// en el otro form preosiono el boton del form1 y cierro el form2
private void pictureBox1_Click(object sender, EventArgs e)
{
f1.btnoperator.PerformClick();
this.Close();
}
What happens is that the function f1.btnoperator.PerformClick();
does not work, does not click the button of the other form.