?
Solved

Form child to parent

Posted on 2007-03-17
3
Medium Priority
?
287 Views
Last Modified: 2013-11-26
Hi. I have parent form which has lots of differnt child forms. I need to change mdiparents one of the controls property from the child form.
For example, mdiparent has a statusbar, and I need to change the statusbars visible property from false to true, from one of the child form or form module. How can I do that?
Thanks..
0
Comment
Question by:gokhanoz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 63

Accepted Solution

by:
Fernando Soto earned 2000 total points
ID: 18741384
Hi gokhanoz;

Here you go.

Public Class Parent
    Inherits System.Windows.Forms.Form
    Private Sub MenuItem1_Click(ByVal sender As System.Object, _
        ByVal e As System.EventArgs) Handles MenuItem1.Click

        Dim child As New Child
        child.MdiParent = Me
        child.TopLevel = False
        child.Show()

    End Sub
End Class

Public Class Child
    Inherits System.Windows.Forms.Form

    Private Sub Button1_Click(ByVal sender As System.Object, _
        ByVal e As System.EventArgs) Handles Button1.Click

        Dim parent As Parent = Me.MdiParent()
        parent.StatusBar1.Text = "This child just updated parent status bar text property"

    End Sub
End Class

Fernando
0
 

Author Comment

by:gokhanoz
ID: 18741421
Thanks..
0
 
LVL 63

Expert Comment

by:Fernando Soto
ID: 18742339
Not a problem, glad to help. ;=)
0

Featured Post

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question