Friday, October 06, 2006 11:44 PM
Desktop size, current screen resolution, ... in C#
Short post this time. Lots of developers (including me) use search engines as their primary source to find code. Unfortunately a lot of code is blindly copied and pasted into a project with the risk for security leaks or performance penalties. Enough about this however.
Today I was messing around in C# to find the current desktop size or screen resolution or .... Well, anything that could give me a clue about the space available in the X and Y direction to put a form on the screen. It really felt bad to know I did this before but I couldn't find out directly.
So here it is (don't forget it anymore), links to MSDN:
| Digg It
Filed under: .NET Framework v2.0, C# 2.0