Basically I have a project with MDI forms, one is father and the others children , the idea is that from MDI son they can modify the text of a toolstripstatuslabel that is part of a status bar has the parent form. The difficult thing would be that only the active form, son, is the one that can perform this action and that the others can not do it. An example would be: I have a project similar to the notepad, the parent form contains a status bar of how many lines the active document has, and there are three child forms containing a multilinear textbox, each containing different text. The idea is to show in your status bar the number of lines that have the text of the selected document or active form. And when this changes the bar update the corresponding data to the selected one. A code that I could do quite basic is the following! in child form:
TryCast (Me.MdiParent, Form1). updated ("works")
And in the father:
Public Sub updated (text As String) toolstripstatuslabel.Text = text End Sub
The code works but it lacks the active condition, which only the ActiveMdiChild is the only layers to modify toolstripstatuslabel.text
Any ideas?