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.
-
Filters
- Posts: 5
- Joined: Mon Nov 05, 2018 6:44 am
Post
by Filters »
hi i'm having problem with multiple value passing to new form
with one value there is no problem but how to pass 2-3-5 different values to new form
Code: Select all
(Show-Domain_Users_psf $select_domain.Text)
but how to pass multiple values to new form

-
jvierra
- Posts: 14691
- Joined: Tue May 22, 2007 9:57 am
-
Answers: 7
- Has voted: 2 times
- Been upvoted: 5 times
Post
by jvierra »
Just add more parameters as needed.
Code: Select all
Param(
$P1,
$P2
$P3,
$P4,
$P5
)
]/code]
-
Filters
- Posts: 5
- Joined: Mon Nov 05, 2018 6:44 am
Post
by Filters »
maybe this will sound stupid question but i'm new to powershell
but from otherside?
Code: Select all
Call-AddEmployeeForm_psf $p1.text,
$p2.text,
$p3.text
something like that?