private void btnRegister_Click(object sender, EventArgs e) { frmRegister regForm = new frmRegister(this.textBoxPhone.Text); DialogResult regResult = regForm.ShowDialog(this); if (regResult == System.Windows.Forms.DialogResult.OK) { this.textBoxPass.Text = regForm.password; this.textBoxPhone.Text = regForm.number; } }
private void frmLogin_Load(object sender, EventArgs e) { this.textBoxPhone.Text = "573107412582"; this.textBoxPass.Text = ""; this.textBoxNick.Text = "NeoWhatsApp"; frmRegister regForm = new frmRegister(this.textBoxPhone.Text); regForm.ObtenerCodigo(); this.textBoxPass.Text = regForm.getPassword(); }