0
I have 2 Forms. The main contains a button that opens the second form inside the main.
private void btnCalculadora_Click(object sender, EventArgs e)
{
Calculadora = new frmCalculadora();
Calculadora.TopLevel = false;
Calculadora.Visible = true;
this.Controls.Add(this.Calculadora);
Calculadora.Location = new Point(210, 40);
}
But I would like that when the high school was opened, he would be selected, so that the event Keypress of the secondary form functioned, but Calculator.Toplevel = false; does not allow.
Note: Leaving Toplevel = true / this.Controls.Add(this.Calculator); of error.
Thank you very much!
– Eduardo
gave right ? please mark as response and evaluate using the arrows on the left side of the post.
– Rovann Linhalis