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;  
  }  
  }  
  }  
文章来源:http://www.cnblogs.com/wangdetian168/archive/2008/09/06/1285664.html
posted on 2010-09-29 13:28 sanmao 阅读(214) 评论(0)  编辑  收藏

只有注册用户登录后才能发表评论。


网站导航:
 

常用链接

留言簿(5)

随笔分类

随笔档案

搜索

  •  

最新评论

阅读排行榜

评论排行榜