Hello everybody,
i have a short question. Is it possible to change a picture in a picturebox when i click a button?
My problem is, that i can show one picture over the properties and dont know how to change it in the script.
Btw.: I attached the picture to my PowerShell Studio Project. The Project should be build and released on some computers.
Best regards
Change picture with a Buttonclick
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: Change picture with a Buttonclick
[TOPIC MOVED TO POWERSHELL GUIS FORUM BY MODERATOR]
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Re: Change picture with a Buttonclick
Thank you for the helpful question. But now is my question how i can add image-files to my project so i can open them in a imagebox from every computer. I tried to add them in my setting over files / folder but how i can open them?
Re: Change picture with a Buttonclick
I don't understand what you are asking. The code above opens an image file into a PictureBox control.
You have two methods to do this. One is to copy the files into the project and distribute the files with the project and two is to add the images to an ImageList control at design time and they will be encoded and embedded in the script.
For more instructions see the following:
PictureBox
ImageList
You have two methods to do this. One is to copy the files into the project and distribute the files with the project and two is to add the images to an ImageList control at design time and they will be encoded and embedded in the script.
For more instructions see the following:
PictureBox
ImageList