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