I want to get a list of the valid screen resolutions on the current computer from code, whether it requires p/invoke or there is a managed function to do this makes no difference.
Please note that I am not looking for the current resolution, this is easy, screen.primaryscreen.bound
s. I want to list all the resolutions that would be valid on the selected monitor.
Essentially, all the values that are in the Windows Display Settings when you go to change your resolution. This area lists all the valid screen resolutions for the current monitor which is exactly what I want.
I know this is possible because when you run remote desktop and look at the display options, it gives you the same list and this is not a windows built in program, so it at the very least has to exist in API somewhere.
Start Free Trial