Use EnumDisplaySettings API to obtain screen resolution

LBaliao

Member
Hello.

Can anyone please provide a sample code using EnumDisplaySettings API to get current screen resolution? Or if anyone knows of other way to get the same information, I'd be glad to know.

Thanks,
Liza
 

oli

Member
Consider using the System.Windows.Forms.Screen class.
Code:
MESSAGE System.Windows.Forms.Screen:PrimaryScreen:Bounds:Width
   SKIP System.Windows.Forms.Screen:PrimaryScreen:Bounds:Height
   VIEW-AS ALERT-BOX INFO BUTTONS OK.
 

LBaliao

Member
rzr and oli, Thank you for your responses. Oli, your code worked. I needed to translate "Screen.PrimaryScreen.Bounds.Height" and "Screen.PrimaryScreen.Bounds.Width" to Progress. I appreciate your help very much. - Liza
 
Top