How to use the textbox to gather input for a variable?

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.
User avatar
Posts: 12094
Joined: Tue May 22, 2007 9:57 am

Re: How to use the textbox to gather input for a variable?

Post by jvierra » Mon Jul 17, 2017 9:46 am

If you don't understand scope and passing variable to and from functions or how to use a complex object like a form then you are new to PowerShell which is why I recommend taking the time to actually learn PowerShell at a technical level. Too many users today have learned PowerShell in a very limited and incorrect or misleading way and have never really learned the fundamentals. A good book will step you through the structure and use of PowerShell and teach why things work the way they do and how to correctly approach a solution/problem with PowerShell.

Believer me. If you are not a trained technical programmer you will not be able to learn this by osmosis.