how to link the Radio Box with Picture Box
my Radio Box is (USA Flag) and so on, I wanna the user chose the first Radio Box so then he will get the USA flag showed on the picture Box but I don't know how to do that I know the way to let the Radio Box reach the picture but not with the picture box
Hemant SrivastavaPosted Jan 16, 2013, 10:47 AM
Add an ImageList control and set its "Images" property to your collection of images.
Then on radioButton_CheckedChanged event handler set your pictureBox image to ImageList collection accordingly.
Code would be like this:
private void radioButton_US_CheckedChanged(object sender, EventArgs e)
{
pictureBox1.Image = imageList1.Images[0];
}
private void radioButton_IN_CheckedChanged(object sender, EventArgs e)
{
pictureBox1.Image = imageList1.Images[1];
}
Let me know, if it's not clear to you.
Suthish NairPosted Jan 16, 2013, 5:56 AM