Search found 15436 matches

by jvierra
Tue Jun 27, 2023 8:43 am
Forum: PowerShell
Topic: Service Script with Parameters
Replies: 8
Views: 3580

Re: Service Script with Parameters

The variable names are the names you gave to the parameters of the "Start-Service" function. Isn't that the first question you asked?.

The two examples I posted links to also show this.

MIcrosoft has replaced services with tasks for security reasons, simplicity and ease of management.
by jvierra
Mon Jun 26, 2023 7:03 pm
Forum: PowerShell
Topic: Service Script with Parameters
Replies: 8
Views: 3580

Re: Service Script with Parameters

That depends on what you want the parameters do. They arrive like all other function parameters. You can use them as needed. They act just like any other variable sent to a function. All sent will be converted to strings so objects and Booleans cannot be sent. Numbers will bem received as strings bu...
by jvierra
Tue Jun 20, 2023 3:51 am
Forum: PowerShell
Topic: MenuStrip SelecedItem
Replies: 5
Views: 2346

Re: MenuStrip SelecedItem

Here iws a walkthrough on how to use menus and add items.

https://www.sapien.com/blog/2019/01/22/ ... owershell/
by jvierra
Tue Jun 20, 2023 3:44 am
Forum: PowerShell
Topic: MenuStrip SelecedItem
Replies: 5
Views: 2346

Re: MenuStrip SelecedItem

You still have to add it before it will work.
by jvierra
Tue Jun 20, 2023 3:30 am
Forum: PowerShell
Topic: MenuStrip SelecedItem
Replies: 5
Views: 2346

Re: MenuStrip SelecedItem

You have to add the menu items to the menustrip for this to work.
by jvierra
Thu Jun 01, 2023 2:51 pm
Forum: PowerShell GUIs
Topic: PS Studio / EXO v3 / 3.1.0 issues
Replies: 3
Views: 1088

Re: PS Studio / EXO v3 / 3.1.0 issues

Adding code to the top oof a form in PSS causes the code to be executed on the forms thread. You must load before calling the form function.
by jvierra
Wed May 31, 2023 4:48 pm
Forum: PowerShell GUIs
Topic: Form validation doco
Replies: 7
Views: 911

Re: Form validation doco

Couldn't get my thick head to see that you were criticizing the documentation and not how to use the event.

Take two points and a chocolate chip cookie. I need one more lemon to make lemonade.
by jvierra
Tue May 30, 2023 6:01 am
Forum: PowerShell GUIs
Topic: Form validation doco
Replies: 7
Views: 911

Re: Form validation doco

Never-the-less, that is how event routing works in Windows. It has always worked like that. "Cancel" means stop processing all related events in the validation chain. Other events will not be affected.

Set $_.Cancel equal to $true when you wish to STOP processing events.