Hey all. I find myself having some issues with parent and child communication.
What I have been asked to do is create a MDI program with many children.
I was able to get that part working great but then the kicker was brought in that the if the focus changes to a different child window that the status bar on the parent will update with the name of the currently focused child.
I was told to use this method in the child form but none of the code I place in here is ever reached when I test it in the debugger
private void Child_MdiChildActivate(object sender, EventArgs e)
{
}
this was in the parent form used to open a new child
private void openToolStripMenuItem_Click(object sender, EventArgs e)
{
count++;
Child n = new Child();
n.Text = "Window " + count.ToString();
n.Name = "child" + count.ToString();
n.MdiParent = this;
n.MouseDown += new MouseEventHandler(Child_MouseDown);
n.BackColor = this.b;
n.ForeColor = this.f;
n.Show();
tssMessage.Text = n.Text;
changeCountStatus();
}
Sorry it seems like such a silly question but I have been searching my textbooks and online for hours in search of a solution.