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

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -