32 or 64 bit version of product: 64 bit
Operating system: Windows 10 Professional, Build 1803
32 or 64 bit OS: 64 bit
Using the following code, both syntax highlighting and autocomplete (PrimalSense) won't work inside the outer -Property @{ } block. See attached screenshot for how it looks on my system in PowerShell Studio. I believe it was working a couple of days ago, so I have a feeling something in the latest update changed how it's handling this?
Code: Select all
$computerLabel = New-Object -TypeName System.Windows.Forms.Label -Property @{
AutoSize = $true
Location = New-Object -TypeName System.Drawing.Point -Property @{
X = 5
Y = 32
}
Size = New-Object -TypeName System.Drawing.Size -Property @{
Height = 25
Width = 100
}
Text = 'Computer Name'
}