Groups | Blog | Home
all groups > dotnet distributed apps > november 2003 >

dotnet distributed apps : MDI Parent properties


Jim
11/12/2003 12:56:15 PM
Anyone know how to access a MDI's properties from a child
form? e.g. changing the value of a statusbar panel?

Thanks,

Jay B. Harlow [MVP - Outlook]
11/12/2003 5:13:41 PM
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

[quoted text, click to view]

Jim
11/13/2003 12:55:41 PM
Thanks Jay!

Jim
[quoted text, click to view]
Joe Fallon
11/22/2003 12:34:38 AM
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!")

--
Joe Fallon




[quoted text, click to view]

AddThis Social Bookmark Button