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 4 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.
I'm trying to build a tool that will show what type of device builds are in our AD. The GUI has a multiline textbox for users to bring in the hostnames. If the hostnames list have no blank lines or an extra line at the end, the script works as expected. What I would like to have is if users copied and pasted into the textbox, and if there were these extra spaces, they would be removed before the script would do the ForEach loop. Currently, the spaces don't cause any issues, it just looks tacky in the output.
Secondly, how can I pipe my results to a datagridview in the GUI? I would like 2 columns "Hostname" and "SSO Build Type"
This topic is 4 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.