How you grab the text or texts from a search"textbox" and use its value on another form (childform)?
For more detail, I currently have a textbox and a button, The button will show the childform. The search'textbox' is literally to show the name, portname and servername of the printer.
I just need to know how to get the value of the textbox to a childform. The help section on this website is using "Call-<name>_<ext>" but when I use it, it becomes unknown. Please help ASAP.
thank you
SearchBox Function
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.
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.
Re: SearchBox Function
You have to pass it as a parameter and define the parameter on the child form. This works the same as any PS script when passing parameters.
See: "HELP about_scripts" for a more detailed discussion.
See: "HELP about_scripts" for a more detailed discussion.
- rocky.pabillore
- Posts: 13
- Last visit: Wed Apr 28, 2021 10:24 am
Re: SearchBox Function
Thank you for the reply, I'm just so lost, Can you give me an example where there is a textbox with a button, and whatever the textbox has, it will be a variable on the child form?
that's what I'm stuck on, and I don't know why I can't see the $searchtextbox_textchanged on my childform.$printers = import-csv -Path C:\temp\allprinters.csv | Where-Object { $_.name -contains "$searchtextbox_TextChanged" }