Search found 14778 matches

by jvierra
Sat May 08, 2021 8:07 am
Forum: PowerShell
Topic: Run GUI with build in credentials
Replies: 1
Views: 57

Re: Run GUI with build in credentials

You can set the package to run with alternate credentials when you package the script. See the documentation for instructions.
-
by jvierra
Fri May 07, 2021 4:46 pm
Forum: PowerShell GUIs
Topic: Updating forms while running a Job
Replies: 1
Views: 104

Re: Updating forms while running a Job

Everything returned from the scriptblock is read in the UpdateScript block. Look at the initial example form provided as a form type. It demonstrates what is happening.
by jvierra
Thu May 06, 2021 9:16 am
Forum: PowerShell GUIs
Topic: module Az.Accounts supported in a GUI/Windows.Forms?
Replies: 3
Views: 185

Re: module Az.Accounts supported in a GUI/Windows.Forms?

You are welcome. One last thing. Learning how to use sophisticated systems like Micorsoft online services is a big challenge even for experienced programmers. Be patient and follow the blogs and the Azure web site and information. The videos have gotten quite good. Also PowerShell was not initially ...
by jvierra
Thu May 06, 2021 7:16 am
Forum: PowerShell GUIs
Topic: module Az.Accounts supported in a GUI/Windows.Forms?
Replies: 3
Views: 185

Re: module Az.Accounts supported in a GUI/Windows.Forms?

I have not found any MS online modules that Microsoft has ever said were not supported. Check with Microsoft documentation for the module as they change things with Azure constantly. Some modules must be imported before the form is called. Use a project to load the module in the "startup.pss" file w...
by jvierra
Thu May 06, 2021 7:13 am
Forum: PowerShell GUIs
Topic: Prevent Script from Freezing PS Studio 2019 form
Replies: 1
Views: 131

Re: Prevent Script from Freezing PS Studio 2019 form

Events cannot be terminated. If a call blocks in an event you will just have to wait for completion or for a timeout. If it deadlocks then it is likely due to some system failure although third party software may not be well designed and may not prevent a complet4e freeze. You can run scripts in a j...
by jvierra
Tue May 04, 2021 5:33 am
Forum: PowerShell GUIs
Topic: Dynamic form location based on monitor size?
Replies: 4
Views: 259

Re: Dynamic form location based on monitor size?

[System.Windows.Forms.Screen]::AllScreens[0].bounds.width - ($f.bounds.Width +50)

This gets the left upper target position for the new location.
by jvierra
Mon May 03, 2021 5:17 pm
Forum: PowerShell GUIs
Topic: Dynamic form location based on monitor size?
Replies: 4
Views: 259

Re: Dynamic form location based on monitor size?

Just set the location to the right upper maximum of the screen after subtracting the form width plus any extra.
by jvierra
Mon May 03, 2021 5:15 pm
Forum: PowerShell
Topic: System Tray Application
Replies: 1
Views: 268

Re: System Tray Application

Use a project and package it then use the Application_Exit event to do the cleanup or just place the code after the call to the main form.
by jvierra
Fri Apr 30, 2021 3:18 pm
Forum: PowerShell GUIs
Topic: Need some help with script for stopwatch
Replies: 5
Views: 547

Re: Need some help with script for stopwatch

Here is a cleaner and simpler way.