Share via

PowerShell GUI & remote jobs

Daniel Brassard 21 Reputation points
2022-03-11T17:57:51.62+00:00

I'm currently building a GUI that has functions that take forever to load. I was wondering:

is there some easy way, maybe a timer or triggered event, to know when a remote job is done and display the result on screen, instead of having to click some button to refresh the display?

I'm not even sure f that is possible.

thanks!

Windows for business | Windows Server | User experience | PowerShell
0 comments No comments

1 answer

Sort by: Most helpful
  1. Daniel Brassard 21 Reputation points
    2022-03-11T19:09:36.84+00:00

    well, a timer does what i need.

    when i create my GUI, i initialize a timer control and set it to 3000 (3 seconds)

    when i load my form, i start the timer and add a timer1_tick event

    then, after i start the timer with $timer1.start(), it loops each 3 seconds and show me a refreshed display.

    thanks!

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.