I have the following:
a form called Form1
an image called Image1
twelve lines that have been drawn and superimposed on the image
I wish to have a command button that will toggle the lines on and off. I
am able to do this with a command for each of the twelve lines, but I
thought that I could use a For...Each...Next routine instead. For the
life of me I can't seem to get the correct syntax and/or I don't have the
twelve lines in (on top?) of a suitable container. A little assistance
would be most appreciated.
My idea is something along these lines......
Dim c as Line
For Each c in Image1
If c.Visible = True then
c.Visible = False
Else
c.Visible = True
End if
Next
Regards,
Tom White