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

前端 未结 1 1279
执笔经年
执笔经年 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)
提交回复
热议问题