LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

dll file to change monitor resolution to 1024*768

hi,

 

i want to change my  computer monitor resolution to 1024*768 programatically. If anybody have this .dll file please suggest me so that i can call this dll in labview apllication and will set my PC resolution to 1024*768 . Please do the needful.

 

 

Regards

Falgandha Mohire

0 Kudos
Message 1 of 3
(5,313 Views)

G Toolbox has a set of VIs can do this:

 

Enumerate Display Mode: Enumerate all supported display modes(width, height, color depth, & frequency) on your computer;

 

Get Display Mode: Get current screen resolution, color depth, and frequency;

 

Restore Display Mode: Restore the screen resolution, color and frequency to the registry values dynamically;

 

Set Display Mode: Change screen resolution, color and frequency dynamically, with option of change registry settings.  If no change, the previous settings can be restored with Restore Display Mode, or reboot.

George Zou
Message 2 of 3
(5,295 Views)

Well, the "DLL" that you need is the operating system's API. Let's assume you're using Windows (you didn't mention which operating system you're using). So, you can take a look at this. Or, you can try to download the sample project given here, which contains a simple executable which may work for you. You can just call this using System Exec.

 

That said, it's usually not a good idea to change screen resolutions on the fly, overriding what a user has selected unless you have a good reason to do so. Are you trying to code for a specific resolution. Do you know about scaling front panel objects to fit different screen resolutions? This is setup in the VI's "Window Size" property page.

Message 3 of 3
(5,289 Views)