C#winform Get screen Size

Source: Internet
Author: User

The size of the current screen in addition to the Work field outside the taskbar This. Width =System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Width;  This. Height =System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Height; The current screen includes the task bar's working field size This. Width=System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width; This. height=System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height; taskbar size This. width=system.windows.forms.screen.primaryscreen.bounds.width-System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Width; This. height=system.windows.forms.screen.primaryscreen.bounds.height-System.windows.forms.screen.primaryscreen.workingarea.height;winform Implement full-screen display WinForm: This. FormBorderStyle =System.Windows.Forms.FormBorderStyle.None; This. WindowState =System.Windows.Forms.FormWindowState.Maximized; This. topmost =true; WinForm Get the screen area rectangle Screenarea= System.Windows.Forms.Screen.GetWorkingArea ( This);

C#winform Get screen Size

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.