Get-ColourRGB.ps1

This script demonstrates how to use the Windows colour dialog from PowerShell.

 
 
 
 
 
5 Star
(1)
Add to favorites
Operating System
9/19/2010
E-mail Twitter del.icio.us Digg Facebook
  • Assembly not loaded
    2 Posts | Last post September 19, 2010
    • Hi Thomas, 
      
      I found when I tried this script in the console that I needed to add the following lines to load the assemblies. Works in the ISE ok though. 
      
      [void][reflection.assembly]::LoadWithPartialName("System.Drawing")
      [void][reflection.assembly]::LoadWithPartialName("system.Windows.Forms")
      
      Thanks for the code snipit
      
      Cheers
    • I develop using PowerShell Plus and these assemblies were loaded on my dev machines. So I did not notice these assemblies needed loading.
      
      I have updated the sample - thanks for the catch.