Beispiel #1
0
        private void 锁定ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Hide();
            frmLock fl = new frmLock();

            fl.Owner = this;
            fl.ShowDialog();
        }
Beispiel #2
0
        private void 锁定ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Hide();
            frmLock fl = new frmLock(); // 显示锁定时的窗口

            fl.Owner = this;            // 设置跳转到 f1 的 Owner,有利于从 f1 跳转回本窗体
            fl.ShowDialog();            // 模态显示 f1,不允许操作其他窗口
        }
Beispiel #3
0
 private void 锁定ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     this.Hide();
     frmLock fl = new frmLock();
     fl.Owner = this;
     fl.ShowDialog();
 }