我正在使用 System.Windows.Forms 程式集中的 Windows.Forms.MonthCalendar。
從 Powershell ISE 運行腳本時,它看起來像這樣:

但是當通過 dekstop 快捷方式運行腳本時,它看起來像這樣:(快捷方式目標:C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File "C:\Temp\Test.ps1" )

如果 Powershell ISE 使用的是更高版本的 Powershell,我如何在快捷方式中使用該版本?
TIA
uj5u.com熱心網友回復:
在創建表單之前需要添加以下內容:
[System.Windows.Forms.Application]::EnableVisualStyles();
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/406959.html
標籤:
