Hello!
I have 9 pictureboxes in a window's form.
I wish to set the image of all of these to one that I specify.
How can I do this with a foreach-loop, or is there any other way?
I tried to use:
but it doesn't work.Code:foreach (PictureBox pbx in this) { pbx.Image = imgBoard; }
Thanks for any help at all!
Cheers,
Zolomon




Reply With Quote