0

On my form I've got a picturebox, radio buttons and check boxes. The check boxes relates to a Square/triangle, in which a square/triangle will be displayed on the picturebox. And the radio boxes relate to rectangle/circle which are displayed when either radio button is selected. I have been told to create an array so that when of the radio buttons is checked, that the image is displayed uppermost (at the front). Any ideas of how to create this array and how to use it.

Thanks.

2
Contributors
3
Replies
4
Views
5 Years
Discussion Span
Last Post by lolafuertes
0

Use an ImageList in your form. ( See here to learn about ImageList class adn get examples. )

Then add to the image list, the images you want to show.

Then, when a check box has changed, set the picturebox image to the desired image in the ImageList.

Hope this helps

0

But how do I add drawing shapes e.g. triangle, square, etc to it?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.