adamdriscoll / poshprotools

PowerShell Pro Tools and Universal Dashboard
https://ironmansoftware.com/
104 stars 24 forks source link

Error with AnchorStyle #246

Closed adamdriscoll closed 6 years ago

adamdriscoll commented 6 years ago

Whenever I change the Anchor properties in an object, I get an error.

props

error

The problem is in line 32 as stated above.

error_text

The proper format should be:

$panel1.Anchor = ([System.Windows.Forms.AnchorStyles]::Top -bor [System.Windows.Forms.AnchorStyles]::Bottom -bor [System.Windows.Forms.AnchorStyles]::Left -bor [System.Windows.Forms.AnchorStyles]::Right)

I changed it manually and worked as expected.

adamdriscoll commented 6 years ago

Fixed in 1.2.2