Ask your PowerShell-related questions, including questions on cmdlet development!
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 3 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.
What you are saying tells me that "$username" is not a value but it is another textbox obect.
The correct way to assign a textbox from a variable is the following:
$username contains the stored value of the output of my function. The value when using PowerShell_ISE is "CTest". However, when writing it to a textbox in PowerShell Studio it is C-System.Windows.Forms.TextBox, Text: Test.Text. I'm trying to figure out how to display it correctly.
I don't believe the function is the issue. There is no errors being thrown. Its clearly grabbing the correct data, but adding in the non-bold parts. C-System.Windows.Forms.TextBox, Text: Test.Text
This issue is very similar to the below. We just need to put this into a GUI to hand off.
craigjb wrote: ↑Wed Apr 08, 2020 2:38 pm
I don't believe the function is the issue. There is no errors being thrown. Its clearly grabbing the correct data, but adding in the non-bold parts. C-System.Windows.Forms.TextBox, Text: Test.Text
This issue is very similar to the below. We just need to put this into a GUI to hand off.
This topic is 3 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.