0
我正在爲PowerShell腳本製作GUI,並且想要使用MetroFramework
顯示MetroMessageBox
,它只需要有一條消息和用於解除的「確定」按鈕。在PowerShell中使用MetroMessageBox
在線搜索我發現的所有內容都是針對VB.Net和C#的。我已經看過如何在PS中運行VB.Net和C#代碼,試用它沒有運氣。
在System.Windows
代碼縱觀MessageBox
類
[System.Windows.MessageBox]::Show('Hello')
我試過,沒有運氣。
[MetroFramework.MetroMessageBox]::Show('Hello')
如何在PowerShell中使用MetroMessageBox
?
尋找像你將需要與添加庫'添加-Type'那麼你應該能夠使用應該看起來像這樣的方法:'[MetroFramework.MetroMessageBox] :: Show(this,「Your message here。」,「Title Here」,MessageBoxButtons.OKCancel,MessageBoxIcon.Hand)' – BenH