From ff666714569efbfdccdb3375a19f3f52f1ae76db Mon Sep 17 00:00:00 2001 From: Jaap Brasser Date: Sun, 11 Aug 2019 22:14:11 +0200 Subject: [PATCH] Added type --- ConvertTo-Base64GUIExample/ConvertTo-Base64GUIExample.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ConvertTo-Base64GUIExample/ConvertTo-Base64GUIExample.ps1 b/ConvertTo-Base64GUIExample/ConvertTo-Base64GUIExample.ps1 index 3716854..eea3df9 100644 --- a/ConvertTo-Base64GUIExample/ConvertTo-Base64GUIExample.ps1 +++ b/ConvertTo-Base64GUIExample/ConvertTo-Base64GUIExample.ps1 @@ -21,6 +21,8 @@ param( } } 'Forms' { + Add-Type -AssemblyName System.Windows.Forms + Add-Type -AssemblyName System.Drawing $Form = New-Object System.Windows.Forms.Form -Property @{ Text = $Title Size = New-Object System.Drawing.Size(300,150)