

$ConfirmatonNameLabel.Location = New-Object (10,80) $ConfirmatonNameform.Icon = $ConfirmatonNewUserformIcon $ConfirmatonNameform.StartPosition = "CenterScreen" $ConfirmatonNameform.Text = "Confirmation Name" $OKButton.Font = New-Object ("Arial",16,::Regular) $OKButton.Location = New-Object (190,860) $TestFormTextBoxFirstname.Font = $TestFormTextBoxFirstnameFont $TestFormTextBoxFirstnameFont = New-Object ("Arial",20,::Italic) $TestFormTextBoxFirstname.Size = New-Object (885,100) $TestFormTextBoxFirstname.Location = New-Object (10,140) $TestFormFormLabelFirstname.Text = "Please Enter Firstname" $TestFormFormLabelFirstname.Font = $TestFormFormLabelFirstnameFont $TestFormFormLabelFirstname.ForeColor = "DarkBlue" $TestFormFormLabelFirstnameFont = New-Object ("Arial",16,::Italic) $TestFormFormLabelFirstname.Size = New-Object (885,40) $TestFormFormLabelFirstname.Location = New-Object (10,100) $TestFormFormLabelFirstname = New-Object $TestFormTitleFont = New-Object ("Times New Roman",26,::Bold) $TestFormTitle.Size = New-Object (450,50) $TestFormTitle.Location = New-Object (10,30) That works fine and I would like to have it on such way. In example 1: I generate a Form, ask for a Name and after a data input and pressing OK, a second form opens to present the data in a label. I started to build a test script that works as shown in example 1 and then extended it and need to do some minor changes to make it work.

I am struggling with a form, in combination with a Textbox and data entered into it.
