登陆界面设为主窗体吧.登入成功就弹出另一个窗体,登陆界面窗体隐藏.

在另一窗体单击注销时关闭当前窗体,返回登入界面.

登陆界面窗体是Form1,另一窗体是Form2,注销按钮为button1

C# code

 

//登陆成功的话:Form2 f=new Form2();f.Owner=this;this.Hide();f.showDialog();//单击注销按钮的话:this.close();//在Form2的closed事件写 this.Owner.show();

相关文章:

  • 2022-12-23
  • 2021-12-26
  • 2021-07-15
  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
  • 2022-01-03
  • 2021-07-05
猜你喜欢
  • 2022-01-23
  • 2021-12-26
  • 2022-12-23
  • 2022-12-23
  • 2021-11-25
  • 2021-12-25
  • 2022-03-09
相关资源
相似解决方案