private   void   ShowHideWindow(bool   isShow)  
  {  
  if(isShow)  
  {  
  if(this.ShowInTaskbar==false)  
  {  
  this.ShowInTaskbar   =   true;  
  this.Show();  
  this.WindowState   =   FormWindowState.Normal;  
  }  
  else  
  {  
  if(this.WindowState   ==   FormWindowState.Minimized)  
  {  
  this.WindowState   =   FormWindowState.Normal;  
  }  
  }  
  this.Activate();  
  }  
  else  
  {  
  if(this.ShowInTaskbar   ==   true)  
  {  
  this.Hide();  
  this.ShowInTaskbar   =   false;  
  }  
  }  
  }  

相关文章:

  • 2021-07-25
  • 2022-12-23
  • 2021-09-01
  • 2021-11-08
  • 2021-12-12
  • 2021-10-02
猜你喜欢
  • 2021-10-02
  • 2021-11-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
相关资源
相似解决方案