Product, version and build: 5.4.138.0
(*** Please do not write "latest" as a version, specify a version number ***)
32 or 64 bit version of product: 64
Operating system: 2K12R2
32 or 64 bit OS: 64
PowerShell Version: 4.0
DO NOT POST SUBSCRIPTIONS, KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM
Hello,
I have a form where I have the below code in the LOAD section. When I launch the GUI, the picture comes up, but not right away (much further down in the code).
If I put a PAUSE in the code (not in the LOAD) then the picture shows up right at the pause. If I remove the pause, the picture removes. Seems to be some refresh issue? I tried to update and refresh both the form and the $picturebox1, but it doesn't seem to make the picture show up right away.
$Up = "c:\Pictures\GreenUp.png"
$picturebox1.ImageLocation = $Up
Thank you,
Image isn't refreshing at the correct time
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Re: Image isn't refreshing at the correct time
[TOPIC MOVED TO POWERSHELL GUIS FORUM BY MODERATOR]
DevinL
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Re: Image isn't refreshing at the correct time
This seems like more of a general GUI question as opposed to a PowerShell Studio specific problem since the controls provided are the regular Windows controls.
If it turns out this is a product issue, I'll move the thread back to the PowerShell Studio forum.
If it turns out this is a product issue, I'll move the thread back to the PowerShell Studio forum.
DevinL
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Re: Image isn't refreshing at the correct time
Thanks DevinL. I found a fix, although not sure if it is the right one.
I went to the properties of the image in the Designer and changed the WaitOnLoad to True.
I went to the properties of the image in the Designer and changed the WaitOnLoad to True.
Re: Image isn't refreshing at the correct time
Why not assign the image in the properties?
There is really no reason for this behavior.
Create a simple form with only the picture and try again to see what is happening.
There is really no reason for this behavior.
Create a simple form with only the picture and try again to see what is happening.
Re: Image isn't refreshing at the correct time
Glad to hear the issue has been resolved!CitrixITM wrote:Thanks DevinL. I found a fix, although not sure if it is the right one.
I went to the properties of the image in the Designer and changed the WaitOnLoad to True.
As usual, if you have any further issues, please don't hesitate to post again.
DevinL
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.