Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
Forum rules Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 2 years and 11 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Currently I'm working on a project in PowerShell Studio 2021 where the form must open in the upper right corner of the screen. This project will be deployed to many users with different monitor sizes so I don't want to statically code the coordinates for the $form1.location. My work around is to detect the primary monitor working location and multiply that by the factor in the $form1.Location variable. Unfortunately, the location in the properties of the form within PS Studio will not accept anything other than integers and that is part of the region generated form code which, to my knowledge, I cannot edit within the .psf file so I must export to a ps1 file and make the changes there.
My question is two part:
A) Is there a way that I can code this directly into PS Studios PSF file without having to export first?
B) Is there a better way to accomplish this?
This topic is 2 years and 11 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.