Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Distributed Applications / November 2003

Tip: Looking for answers? Try searching our database.

MDI Parent properties

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jim - 12 Nov 2003 20:56 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.