Hi,
Please anyone who could help me implement this requirement:
From the parent's menu strip item I need to cause a button_click event in one of the child.
In my MDI Parent I have this code:
private void formCToolStripMenuItem_Click(object sender, EventArgs e)
{
mdiFormA obj = new mdiFormA();
obj.btnFormA.Click += new System.EventHandle formCToolStripMenuItem_Click);
}
In the target MDI child that is mdiFormA, I have made the following modification:
public System.Windows.Forms.Button btnFormA;
public void btnFormA_Click(object sender, EventArgs e)
{
MessageBox.Show("Button Clicked");
//further code goes here to open mdiChildC later on with certain conditions
}
mdiFormA is already opened before the menu item click, but this arrangement is not working, Please if anyone could help me out with this, it will be appreciated a lot.
Thanks in advance.