LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Get Usable Monitor Size

Solved!
Go to solution

You don't need the constructor. Drop a property node, right click, select CLASS / .NET then browse to System.Windows.Forms, then select SCREEN.

 

0xDEAD

0 Kudos
Message 21 of 24
(1,093 Views)

Found this old thread today, looking for the topic. Just wanted to add that on my Windows 10 installation I cannot select any class and "Screen" isn't available at all.

Plus, none of the classes is accepted for the .NET property node because the OK remains locked.

 

MaSta_0-1677686684622.png

 

0 Kudos
Message 22 of 24
(687 Views)

You need to double click the System.Windows.Forms line so the + turns into a - and shows you the selections underneath it:

Kyle97330_0-1677690257726.png

 

Message 23 of 24
(672 Views)

Years after this .NET process, AQ and Darren posted a G implementation that works pretty well over on LAVA.

 

https://lavag.org/topic/21484-need-way-in-g-to-get-monitor-size-minus-taskbar-os-independent/#commen...

 

I later turned that into some code that could center a window on the monitor your mouse is on, or center a window under your monitor, but stay within the monitor bounds.

 

https://lavag.org/topic/21678-what-determines-which-monitor-a-dialog-shows-on/?do=findComment&commen...

 

Message 24 of 24
(635 Views)