private void txtCP_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == '\r')//Presionar ENTER { Connections cx = new Connections(this); cx.AgregarProducto(numF, txtIP.Text, txtNP.Text, txtCP.Text, lblP.Text); cx.Total(); } }