Get screenresolution when running unattended

Hi All,

Is there any activity where I could get resolution of screen when running unattended

Thank yo7

Hi @manthar1930

You need to import the System.Windows.Forms namespace
image

Or alternatively, you can just use the entire line like:
System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width

If namespace imported check this
myVarHeight = Screen.PrimaryScreen.Bounds.Height

myVarwidth = Screen.PrimaryScreen.Bounds.Width

1 Like

Thanks @nikhil.girish

Will check this out

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.