Problem with "monitoring" application with simple gui

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.
Locked
User avatar
pipari
Posts: 1
Last visit: Sun May 25, 2014 12:30 pm

Problem with "monitoring" application with simple gui

Post by pipari »

Hi Guys!

I have done a script that is monitoring a directory. And if something ends up there it will be pushed to the user.

I just want a simple window that says "Alerts" and is available to quit. Simple demands.

The problem is that when the "polling" beginns the window become unavailable.

Tried too use start-job and breaking out the "polling" service... nothing works. The "polling" is the part that creates the pop-up message.

Se the attached file.

Any ideas?

//Cristopher
Attachments
notification_0.1.ps1
(16.62 KiB) Downloaded 440 times

Locked