hi,
i made a form1(FrmMain) and when i press on BtnAdvocaat form2(FrmAdvocaat) is vissable and BtnAdvocaat is disabled. now i want to make it like this:
when the form2(FrmAdvocaat) is closed by BtnClose i want BtnOpen to be enabled.
the code to open so far is:
private void button1_Click(object sender, EventArgs e)
{
FrmAdvocaat form2 = new FrmAdvocaat();
form2.Show();
BtnAdvocaat.Enabled = false;
}
and on form2 i have a button with this code:
private void button2_Click(object sender, EventArgs e)
{
this.Close();
}
now how could i get BtnAdvocaatr.enabled = true; on form1?
in delphi it's just FrmMain.BtnAdvocaat.enabled = true;
but i don't know how to call other button on another form...
plz some help with this ;)