0

I have an mdi parent and 2 child forms. Both are opened. Now When I try to pass a value, it gives me nullexception value.

Heres how I created MDI child forms:

Dim _a As New a
        _a.MdiParent = Me
        _a.Show()

Dim _b As New b
        _b.MdiParent = Me
        _b.Show()

When both are opened with "a" having some text in textbox1 and "b" having empty textbox2. Now, I tried to get the value for "b" textbox from "a" as textbox2.text=a.textbox1.text. It gives me error. No value can be passed between child forms? How can I share the form events now?

1
Contributor
1
Reply
2
Views
5 Years
Discussion Span
Last Post by Riteman
0

Thank God.. Just changed Dim to Public and referred by new name.. and got it.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.