Page 1 of 1

pass form data

Posted: Thu Nov 08, 2018 1:48 am
by Filters
Hi I'm new to powershell and stuck with a little problem with data sending from mainform to childform
No data is showed in child form :( and version is 2018
Main Form

Code: Select all

$MainForm_Load={
$textbox1.Text = 'bla bla bla'}

$buttonCallChildForm_Click={
	if((Show-ChildForm_psf) -eq 'OK'){$textbox1.Text = $ChildForm_textbox1}
}
ChildForm

Code: Select all

$formChildForm_Load={
	#TODO: Initialize Form Controls here
}

Re: pass form data

Posted: Fri Nov 09, 2018 6:52 am
by davidc
The following article demonstrates how to pass values to child forms:

https://info.sapien.com/index.php/guis/gui-scripting/powershell-studio-passing-and-returning-values-using-forms

Note: The Call verb has since been replaced with Show and Invoke verbs.

Please let us know if you have any further questions.