Access User's Possible Screen Resolutions - C# 2010
问题 Thanks in advance for your help. I am wondering how I might go about accessing the screen resolutions available on a user's PC. I would like to get a list of all available resolutions and also determine what the user is current running at. 回答1: I believe you can make a PInvoke call to EnumDisplaySettings api call in User32.dll. [DllImport("user32.dll")] public static extern bool EnumDisplaySettings (string deviceName, int modeNum, ref DEVMODE devMode ); See example here. You'll of course run