winforms - Power Shell marquee progress bar not working -
winforms - Power Shell marquee progress bar not working -
what i'm attempting create window using forms , add together marquee style progress bar continuously loops while script runs. i'm not concerned tracking progress, user knows occurring.
here's have far:
add-type -assemblyname system.windows.forms $window = new-object windows.forms.form $window.size = new-object drawing.size @(400,75) $window.startposition = "centerscreen" $window.font = new-object system.drawing.font("calibri",11,[system.drawing.fontstyle]::bold) $window.text = "starting up" $progressbar1 = new-object system.windows.forms.progressbar $progressbar1.location = new-object system.drawing.point(10, 10) $progressbar1.size = new-object system.drawing.size(365, 20) $progressbar1.style = "marquee" $progressbar1.marqueeanimationspeed = 20 $window.controls.add($progressbar1) $window.showdialog()
this draws progress bar , window, don't marquee animation within progress bar.
what missing?
winforms powershell
Comments
Post a Comment