日期:2014-05-18 浏览次数:20898 次
//人力资源管理系统button private void button2_Click(object sender, EventArgs e) { HrManageForm myHrForm = new HrManageForm(); myHrForm.Show(); this.Visible = false; }
//关闭人力资源管理窗口之后显示企业管理窗口 private void HrManageForm_FormClosed(object sender, FormClosedEventArgs e) { FatherForm fatherform = new FatherForm(); fatherform.Show(); }
public Form1() { InitializeComponent(); f1 = this; } public static Form1 f1; private void button1_Click(object sender, EventArgs e) { Form2 f2 = new Form2(); f2.Show(); this.Visible = false; }
------解决方案--------------------
private void button2_Click(object sender, EventArgs e)
{
this.Visible = false;
HrManageForm myHrForm = new HrManageForm();
myHrFormthis.ShowDialog();
this.Visible = true;
}
在HrHanagerForm上
C# code
//关闭人力资源管理窗口之后显示企业管理窗口
private void HrManageForm_FormClosed(object sender, FormClosedEventArgs e)
{
}
------解决方案--------------------
http://blog.csdn.net/wuyazhe/article/details/5642431