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 6 years and 1 month 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.
Product, version and build: 5.5.149
32 or 64 bit version of product: 64
Operating system: Windows 10 and 7
32 or 64 bit OS: both
I have written a form that has many tabs and many buttons. Some buttons run invoke-command, some call functions etc... I have one button that will get all file type associations on a target machine. It dumps the output to Out-Gridview. It all works but when this is executed it resized the Dialog to a much smaller size. And if I remove the Out-gridview it does not resize it. Why would Out-Gridview cause this? And I would prefer not to use Out-Gridview but when I pipe the out put to the RichTextBox it is one long line and you cant read it.
[TOPIC MOVED TO POWERSHELL GUIS FORUM BY MODERATOR]
In order to display the results in a textbox you must first convert it into a string. You can also use Format-Table to change the layout of the results.
This topic is 6 years and 1 month 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.