Anyone know how to access a MDI's properties from a child
form? e.g. changing the value of a statusbar panel?
Thanks,
Jim
Jay B. Harlow [MVP - Outlook] - 12 Nov 2003 23:13 GMT
Jim,
I normally just cast the Form.MdiParent property of the child to the class
that is the Mdi Container, then access the methods or properties from there.
Hope this helps
Jay
> Anyone know how to access a MDI's properties from a child
> form? e.g. changing the value of a statusbar panel?
>
> Thanks,
>
> Jim
Jim - 13 Nov 2003 20:55 GMT
Thanks Jay!
Jim
>-----Original Message-----
>Jim,
[quoted text clipped - 12 lines]
>
>.
Joe Fallon - 22 Nov 2003 05:34 GMT
In the Main form you can add this:
Private Shared mMain As Main
Public Shared Sub Status(ByVal Text As String)
mMain.pnlStatus.Text = Text
End Sub
================================
Your child form should call
Main.Status("Hey!")

Signature
Joe Fallon
> Anyone know how to access a MDI's properties from a child
> form? e.g. changing the value of a statusbar panel?
>
> Thanks,
>
> Jim