Author Topic: How to make the image appear on a 1  (Read 893 times)

Mvlawn

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
How to make the image appear on a 1
« on: February 25, 2016, 10:18:48 PM »
How would I make the AnimatingPictureBox2 hide or show the flam based on a 1 or zero? I imagine it has something to do with the PLCAddressImageTranslateXValue. Should I be using something else in place of this to perform the task?

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: How to make the image appear on a 1
« Reply #1 on: February 25, 2016, 10:34:37 PM »
You would use the PCLAddresVisible property

Since Winforms tends not to always handle overlapping controls very well, I would create 2 separate images. One with the flame and one without. Then use the GraphicIndicator along with the PLCAddressValueSelect1 to toggle between the 2 images.

Mvlawn

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
Re: How to make the image appear on a 1
« Reply #2 on: February 25, 2016, 11:10:36 PM »
Thanks Archie. I am not sure if I did exactly what you said but my outcome worked due to the following steps.

1. Copy the AnimatingPictureBox, and delete the Backgroundimage, and the PLCAdressvissable. Place it on the tank.

2.Put the 2nd AnimatingPictureBox over it with the Backgroundimage and PLCAdressvissable.