private void 修改密码ToolStripMenuItem_Click(object sender, EventArgs e) { this.Hide(); 忘记密码 form = new 忘记密码(this); form.StartPosition = FormStartPosition.CenterScreen; form.Show(); }
private void Button3_Click(object sender, EventArgs e) //忘记密码 { if (sqlConnection == null) { MessageBox.Show("数据库连接错误,请先检查连接!"); } else { 忘记密码 form = new 忘记密码(this); form.StartPosition = FormStartPosition.CenterScreen; form.Show(); this.Hide(); } }