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 7 years and 4 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.
My confusion is this... how do I get the output of my button press (which runs a simple function) to actually output into my textbox? Here's my script that I'm using to test out functionality of Studio. I have the $textboxresults.text = blah blah blah but that doesn't seem to do anything at all....
$form1_Load={
#TODO: Initialize Form Controls here
Import-Module ActiveDirectory
}
$buttonGetUser_Click= {
#TODO: Place custom script here
$GetUser = Get-User
$textboxResults.text = $GetUser
This topic is 7 years and 4 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.