LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

screen resolution of 2nd monitor

Solved!
Go to solution

Dear all,

i am working on an application which uses 2 monitors.

i have a VI which measures the screen resolution of the screen.

i want to know the screen resolution of the 2nd monitor.

how can i get that ?

 

thanks,

ritesh

0 Kudos
Message 1 of 5
(3,506 Views)
Solution
Accepted by topic author LVCoder
You could use an app property node, set to display -> AllMonitors. Index this with an array and unbundle the result. This will give info on the bounds of the screen. By subtracting left from right and top from bottom,. you can get the size of the screen.
_____________________________
- Cheers, Ed
Message 2 of 5
(3,499 Views)

"ritesh024" <x@no.email> wrote in message
news:1235646627028-860804@exchange.ni.com...
> Dear all,i am working on an application which uses 2 monitors.i have a VI
which measures the screen resolution of the screen.i want to know the screen
resolution of the 2nd monitor.how can i get that ?&nbsp;thanks,ritesh

Use an application property node, Display>All Monitors.

Regards,

Wiebe.


Message 3 of 5
(3,498 Views)

Hey Guys,

Thanks a lot..

that was gr88 ..

 

just another query ..

in the VI properties->Window run time position-> panel size.. 

how can i set the panel size at runtime ??

 

Thanks,

Ritesh

0 Kudos
Message 4 of 5
(3,481 Views)

You can set the panel size in the VI properties (ctrl-i)

or if you want to do it programatically 

Vi Property node ->front panel -> window bounds [ ]

_____________________________
- Cheers, Ed
0 Kudos
Message 5 of 5
(3,475 Views)