Windows Forms look different in Powershell and Powershell ISE. Why?

前端 未结 1 1281
执笔经年
执笔经年 2021-01-04 12:18

I have written a script which is basically a small wysiwyg signature generator for Outlook. We want our signatures to be in corporate colours, and semi-standardised - hence

相关标签:
1条回答
  • 2021-01-04 12:35

    Add the following line in your script before you show the form:

    [System.Windows.Forms.Application]::EnableVisualStyles();
    
    0 讨论(0)
提交回复
热议问题