The property 'DoubleBuffered' cannot be found

Issue #80 resolved
Former user created an issue

Hi, i am doing some tests with gui. I always have a doubleBuffered error each time i launch my script.

GAC Version Location --- ------- -------- True v4.0.30319 C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll The property 'DoubleBuffered' cannot be found on this object. Verify that the property exists and can be set. At c:[xxxxxxxxxxxxxxx]\tgui.designer.ps1:34 char:1 + $Form1.DoubleBuffered = $false + ~~~~~~ + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : PropertyAssignmentException

my script is quite simple:

$Button1_Click = { $Form1.box1.text = $env:COMPUTERNAME } Add-Type -AssemblyName System.Windows.Forms . (Join-Path $PSScriptRoot 'tgui.designer.ps1') $Form1.ShowDialog()

i don't know what am i doing wrong

Comments (2)

  1. Log in to comment