From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Example Code

Reference Example for Reading Screen Resolution

Code and Documents

Attachment

Overview


The attached LabVIEW 8.0 project uses a .NET assembly, ScreenRes.dll, to retrieve the current resolution of the computer screen. This is useful when manually positioning front panel items, based on the resolution of the monitor. See the attached file lvscreenresolution.zip

The attached LabVIEW 8.0 project uses a .NET assembly, ScreenRes.dll, to retrieve the current resolution of the computer screen. This is useful when manually positioning front panel items, based on the resolution of the monitor. See the attached file lvscreenresolution.zip

Feedback

This reference example was created by the NI Applications Engineering group. 

We do not regularly monitor Reader Comments posted on this page.

Please direct support questions to NI Technical Support.

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors