Need Return variable text from Main form to Child form

Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
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 2 years and 9 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.
Locked
compsaikat
Posts: 1
Last visit: Tue Jun 29, 2021 10:22 am

Need Return variable text from Main form to Child form

Post by compsaikat »

Hello,

I am just new to this tool, and need one help to get the return variable text value from a main form to a child form.

I know the "Show-ChildForm_psf" works just fine to call variable from child to main, but need some help to do the reverse like forward the variable text from main form to a child form.

Thanks in advance.
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: Need Return variable text from Main form to Child form

Post by jvierra »

Just add a Param statement to the child form.
This topic is 2 years and 9 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.
Locked