Quantcast
Channel: SAPIEN Forums
Viewing all articles
Browse latest Browse all 427

PowerShell GUIs • Re: fill second row of textbox

$
0
0
You need to append the text as currently you are always overwriting the Text property of your textbox. There are multiple ways to accomplish this:
You can do something like the following:
$Textbox1.text = $Textbox1.text + $MyArray[$counter]

If you want the text from the array on a new line, you can do something like the following:
$Textbox1.text = $Textbox1.text + [Environment]::NewLine + $MyArray[$counter]

You may find the following helpful:
https://4sysops.com/archives/strings-in ... substring/

Statistics: Posted by brittneyr — Thu Sep 26, 2024 7:48 am



Viewing all articles
Browse latest Browse all 427

Trending Articles