09-04-2008 07:17 AM
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
09-04-2008 12:07 PM
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.
09-04-2008 12:17 PM
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.