I'm using Windows.Forms.MonthCalendar from the System.Windows.Forms assembly.
When running the script from Powershell ISE, it looks like this:
But when running the script via a dekstop shortcut, it looks like this: (Shortcut target: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File "C:\Temp\Test.ps1")
If Powershell ISE is using a later version of Powershell, how can I use that version in my shortcut?
TIA
Needed to add the following before creating the form:
[System.Windows.Forms.Application]::EnableVisualStyles();