天天看點

擷取螢幕分辨率

實作效果:

  

擷取螢幕分辨率

知識運用:

  SystemInformation類的VirtualScreen屬性  //該類提供目前系統環境的有關資訊  VirtualScreen屬性

private void Form1_Load(object sender, EventArgs e)
        {
            label1.Text = "目前螢幕分辨率: " + SystemInformation.VirtualScreen.Width + "*" + SystemInformation.VirtualScreen.Height;
        }
      

繼續閱讀