MDI question - how to call other MDI child forms from a MDI chilid form?

MDI question - how to call other MDI child forms from a MDI chilid form?

Post by Robert Joh » Sat, 23 Jun 2007 02:54:39


Hi all. I have a MDI child form that is a systems maintenance form. I have
7 buttons that will be used to call 7 lookup table maintance forms. My code
to call the lookup table child forms from the child form is the problem.
How do I code it?
The MainFrame.vb is the MDI container. I tried setting that as the MdiParent
but no joy... Obviously I can't use .Me as .Me is a child form also.. So
how do I do this?

Thanks in advance..

Robert

Here is the one that calls the maintence form for Color:

Private Sub btnColor_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnColor.Click

Dim frmCOL As New frmColorMaint

frmCOL.MdiParent = GRS2.MainForm <------- this is the MainFrame.vb
that is the MDI container

frmCOL.Show()

End Sub
 
 
 

1. Q: MDI Child Forms in a DLL, how to bring em up in the MDI Form?

2. MDI Child Forms in a DLL, how to bring em up in the MDI Form?

Martin,

From the MDI parent, you can load the assembly, along with the type from
the assembly, and then create an instance (cast down to Form) using the
static CreateInstance method on the Activator class. Once you have that,
you can cet the IsMdiChild property on the form to true, and then add the
form to the children of your app.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- XXXX@XXXXX.COM

"Visual Systems AB (Martin Arvidsson)" < XXXX@XXXXX.COM > wrote in

3. MDI - how to open a child from a child within MDI parent form?

4. Mdi question: How to access controls from mdi child form?

5. Calling a method in one MDI child from another MDI child

6. Mdi Child Form - Limiting Placement Within Mdi Parent

7. Mdi Parent controls showing on Mdi Child forms

8. Opening a Delphi.NET MDI Child form in a C# MDI Container

9. Subscribe MDI parent form to MDI child Closed event

10. How do I write to the MDI Parent statusbar from a MDI child form?

11. How to make form MDI parent and MDI CHild

12. Focus between MDI-Form and MDI-Child

13. MDI List and MDI Children forms.

14. PictureBox in Mdi Parent covers Mdi child forms

15. Hosting Clarion MDI child forms in C# MDI container