Created
November 7, 2023 23:03
-
-
Save TheKevinWang/5dedb7abbc8c51c24d55dbc60ab937de to your computer and use it in GitHub Desktop.
Show message box in powershell using Windows.Forms.Application in a style that fits w10/11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[System.Windows.Forms.Application]::EnableVisualStyles(); | |
Add-Type -AssemblyName System.Windows.Forms | |
[System.Windows.Forms.MessageBox]::Show("failed", "status", "OK", "Error") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment