Doubt regarding Picture Box !!!
hi all.... my question is simple....
i have created two window forms ( form1 and
form2)....
In form 1 , i kept one radiobutton ...
In form 2, i kept one picture box....
My question is that , if i select that radiobutton
in form1, i should make the picture box in form 2
either disabled or invisible.....
how to do this????...... pls help.....
thank u!!!!!!
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Jan MontanoRank #1,295 · 1.3K reputationPosted Mar 19, 2009, 5:35 PM EDT
//form2
public void DisplayPicture(bool display)
{
pictureBox1.Visible = display;
}
then call it from form1...
//form1
private void radioButton1_CheckedChanged(object sender, EventArgs e)
{
bool display = radioButton1.Checked;
form2.DisplayPicture(display);
}
csharp rocks8 reputationPosted Mar 19, 2009, 8:57 PM EDT