Sign in to follow this  
Montynis

[.net] Width and height of monitor

Recommended Posts

Montynis    122
Hello, I have got one simple question : how to get the width and height of my monitor (I am using C# and Managed DirectX 9). I have tried to do a research in this question, but it wasn't successful. Thanks in advance.

Share this post


Link to post
Share on other sites
kanato    568
Have a look at the System.Windows.Forms.Screen class. You can do things like:

Screen.PrimaryScreen.Bounds // for boundaries
Screen.PrimaryScreen.WorkingArea // for boundaries - taskbar areas, etc.

It's got a collection of all screens attached to the system, too.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this