textbox appendtext
Posted: Thu Jun 10, 2021 8:42 am
I searched for a solution for my issue with AppendText but didn't find anything.
trying to append the input from multiple text boxes into a "summary" text box but it is adding the below text marked in red for each input
i'm missing something obvious to avoid this and prevent that text from appearing, thanks for any help!
$FirstName_TextChanged = {
$firstname = $FirstName.text
}
$LastName_TextChanged={
$lastname = $LastName.text
}
contents of the "summary" text box:
User type is 'invited'
First Name is 'System.Windows.Forms.TextBox, Text: John'
Last Name is 'System.Windows.Forms.TextBox, Text: Smith'
trying to append the input from multiple text boxes into a "summary" text box but it is adding the below text marked in red for each input
i'm missing something obvious to avoid this and prevent that text from appearing, thanks for any help!
$FirstName_TextChanged = {
$firstname = $FirstName.text
}
$LastName_TextChanged={
$lastname = $LastName.text
}
Code: Select all
$buttonProvision_Click={
#TODO: Place custom script here
if ($radiobuttonInvited.Checked -eq $true)
{
$usertype = "invited"
}
$results.ForeColor = 'Green'
$results.Text = "User type is '$usertype'`r`n"
$results.AppendText("First Name is '$FirstName'`r`n")
$results.AppendText("Last Name is '$LastName'")
}
User type is 'invited'
First Name is 'System.Windows.Forms.TextBox, Text: John'
Last Name is 'System.Windows.Forms.TextBox, Text: Smith'