trying to update textbox text based on another textbox but it isn't working
ok have following script. $mainform = new-object system.windows.forms.form $mainform.text = "assign $lu $newpcname" $mainform.size = new-object system.drawing.size(600,250) $mainform.startposition = "centerscreen" $mainform.autoscroll = $true $mainform.font = new-object system.drawing.font("californian fb", 14,[system.drawing.fontstyle]::bold) $mainform.formborderstyle = "fixeddialog" $mainform.maximizebox = $false $npnlb = new-object system.windows.forms.label $npnlb.size = new-object system.drawing.size(130,25) $npnlb.location = new-object system.drawing.point(5,16) $npnlb.text = "pc name: " $npntb = new-object system.windows.forms.textbox $npntb.location = new-object system.drawing.point(140,14) $npntb.size = new-object system.drawing.size(150,35) $npntb.text = $newpcname $npntb.add_mouseenter({$this.backcolor = [system.drawing.color]::fromargb(6,139,138)}) $npntb.add_mouseleave({$this.backcol...