R
Randy
The following code, which runs when I click File->Save in my main form,
finds my save button in my mdi child for just fine. The question is: how do
I invoke the Save method in the child form?
Thanks....
protected void SaveMenuSelect(Object sender, System.EventArgs e)
{
Form form = (Form)this.ActiveMdiChild;
foreach(Control c in form.Controls)
{
if(c.Name == "btnSave")
{
Console.WriteLine("control is btnSave");
}
}
}
finds my save button in my mdi child for just fine. The question is: how do
I invoke the Save method in the child form?
Thanks....
protected void SaveMenuSelect(Object sender, System.EventArgs e)
{
Form form = (Form)this.ActiveMdiChild;
foreach(Control c in form.Controls)
{
if(c.Name == "btnSave")
{
Console.WriteLine("control is btnSave");
}
}
}