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!!!!!!
csharp rocksPosted Mar 20, 2009, 12:57 AM
Jan MontanoPosted Mar 19, 2009, 9:35 PM
//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);
}