From af429164f9d31c3b4b98e7de63d68342021c6a1c Mon Sep 17 00:00:00 2001 From: Schnittlauch <83691383+IrgendwasMitSchnittlauch@users.noreply.github.com> Date: Wed, 17 Nov 2021 21:26:41 +0100 Subject: [PATCH] Update realtime-powershell-gui.ps1 --- Tools/realtime-powershell-gui.ps1 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Tools/realtime-powershell-gui.ps1 b/Tools/realtime-powershell-gui.ps1 index 04ac422..f880c36 100644 --- a/Tools/realtime-powershell-gui.ps1 +++ b/Tools/realtime-powershell-gui.ps1 @@ -1,5 +1,8 @@ -#real time data Auto update form +#Initialize the GUI +[void] [System.Reflection.Assembly]::LoadWithPartialName("System.Drawing") +[void] [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") +#real time data Auto update form function UpdateProcCount($Label) { $Label.Text = "Number of processes running on my computer: " + (Get-Process | measure).Count