//找回密码被点击 private void labelForget_Click(object sender, EventArgs e) { int x = this.Location.X - 200; int y = this.Location.Y - 200; formForget1 = new FormForget1(x, y); formForget1.ShowDialog(); }
public void MessageBox(object state) { int x = this.Location.X; int y = this.Location.Y; this.Location = new Point(10000, 0); System.Windows.Forms.MessageBox.Show((string)state, "提示:"); formForget1 = new FormForget1(x, y); this.Close(); this.Dispose(); formForget1.ShowDialog(); }