Link to home
Start Free TrialLog in
Avatar of dungla
dunglaFlag for Viet Nam

asked on

How to get screen dimension in C# (winform)

Hi all,

I'm a newbie and want to know how to get screen dimesion in C# (Winform). It will help me to calculate where to put my control by percent to window screen (not form size)

Any suggestion?
ASKER CERTIFIED SOLUTION
Avatar of 123654789987
123654789987

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Check these values:

SystemInformation.PrimaryMonitorSize
SystemInformation.WorkingArea
SystemInformation.VirtualScreen
Screen.PrimaryScreen.Bounds
Screen.PrimaryScreen.WorkingArea
Avatar of vinhnl
vinhnl

System.Windows.Forms.SystemInformation (no for points)