1
/// <summary>
2
/// 关闭显示器
3
/// </summary>
4
/// <param name="sender"></param>
5
/// <param name="e"></param>
6
void CloseLCD(object sender, EventArgs e)
7
{
8
SendMessage(this.Handle, WM_SYSCOMMAND, SC_MONITORPOWER, 2); // 2 为关闭显示器, -1则打开显示器
9
}
10
SendMessage

2

3

4

5

6

7

8

9

10
