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


I wrote a script, which is basically a small voice signing signature for Outlook. We want our signatures to be in corporate colors and are semi-standardized - hence its requirement.

I did the development work in PowerShell ISE and all looked good, however, when I run the script using PowerShell (as the users would have) it looks completely different:

The top was born in the ISE, and looks like, I want it. The bottom was directly driven from a power shell and visually seems to be for five years!

How can I get the script to see PowerShell as ISE in PowerShell as a snack?

Thank you,

the following in your script Add form before showing the row:

  [System.Windows.Forms.Application] :: EnableVisualStyles ();  

Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -