Hello All,

I have 2(two) PictureBoxes, one on top of the other - both with a different image that is set in the Properties window. What I need is that when my program returns a number if that is below the threshold then PictureBox1 is shown and PictureBox 2 is not.

Now I have tried;

If x < 10 then
PictureBox1.Visible = True
PictureBox2.Visible = False
else
PictureBox2.Visible=True
PictureBox1.Visible = False
end if

PictureBox2 is always shown. If I set both to Visible=False in the Properties window neither are shown.

Surely this is a pretty simple thing to do, so why won't it work?

Rgds
Tarablue