private void menuManagerInfo_Click(object sender, EventArgs e) { FormManagerInfo formManagerInfo = FormManagerInfo.Create(); formManagerInfo.Show(); formManagerInfo.Focus(); }
private void menuManagerInfo_Click(object sender, EventArgs e) { FormManagerInfo formManagerInfo = FormManagerInfo.Create();//new FormManagerInfo(); formManagerInfo.Show(); formManagerInfo.Focus();//将当前窗体获得焦点 //如果是最小化的,则恢复到正常状态 formManagerInfo.WindowState = FormWindowState.Normal; }