feiyucha

实现效果:

  

知识运用:

  Application类的SetSuspendState方法     //挂起系统或使系统休眠

  public static bool SetSuspendState (PowerState state ,bool force , bool  disableWakeEvent)

  

实现代码:

        private void button1_Click(object sender, EventArgs e)
        {
            Application.SetSuspendState(PowerState.Hibernate,true,false);
        }

 

分类:

技术点:

相关文章:

  • 2022-02-09
  • 2022-01-06
  • 2022-01-01
  • 2021-12-23
  • 2021-11-30
  • 2021-11-29
  • 2022-01-14
  • 2021-11-30
猜你喜欢
  • 2021-12-27
  • 2021-11-20
  • 2021-12-25
  • 2021-12-06
  • 2021-12-02
  • 2022-01-04
  • 2021-12-13
相关资源
相似解决方案