Hi,
I m new in c#, windows application.
I have created a MDIForm, ChildForms named (Form1, Form2, Form3, ..........).
Each child form contains the function :
public void Enable_Disable_ GU(bool p_status)
{
textBox1.Enable d = p_status;
textBox2.Enable d = p_status;
textBox3.Enable d = p_status;
}
MDIForm contains a button : btn1. At click event of btn1, i have to call the above function for CURRENT ACTIVE FORM
eg -
ActiveMdiChild. Enable_Disable_ GU(false);
I m unable to call the function.
Please help me.
Thanks
Kamal
I m new in c#, windows application.
I have created a MDIForm, ChildForms named (Form1, Form2, Form3, ..........).
Each child form contains the function :
public void Enable_Disable_ GU(bool p_status)
{
textBox1.Enable d = p_status;
textBox2.Enable d = p_status;
textBox3.Enable d = p_status;
}
MDIForm contains a button : btn1. At click event of btn1, i have to call the above function for CURRENT ACTIVE FORM
eg -
ActiveMdiChild. Enable_Disable_ GU(false);
I m unable to call the function.
Please help me.
Thanks
Kamal
Comment