07-16-2009 06:14 PM
I want my customized "Get Serial Number" vi to be in one of two positions on the screen. How can I get the system screen metrics so I can determine the (top,left) coordinates of the vi window, and set the position of the window within the vi?
Thanks,
Mike
Solved! Go to Solution.
07-16-2009 06:54 PM - edited 07-16-2009 06:55 PM
If you are using a PC, the screen size can be found using the .NET Property Node under Systems.Windows.Forms.SystemInformation.PrimaryMonitorSize
You can move the vi front panel using a property node with a reference to 'This VI'. I have enclosed a not-too-elegant yet functional example. Hope this helps.
-Darin
07-16-2009 07:13 PM
For those of you not tethered to PCs, a more platform-independent method for the screen size would be the Display WkSpace property, just pass an application reference to the property node and select DisplayWkSpace property.
-Darin
07-17-2009 02:18 PM