I have a MDI .NET application. There is a main form (frmMain) which opens a second form (frmOpen) as a dialog (i.e. Modal). The frmOpen form will be used by the user to enter selection criteria and retrieve a list of database records. They then select one record and click Open. The frmOpen then opens a 3rd form (frmMaintain) and needs to set the MDIParent of that form to frmMain, and set a few options on the form.
So ... the question is ... how do you refer to a form that is already open? I know I can declare a new form object, open it, and set the parent = me, but how can I set the parent = another form?
Here's the code I have:
Dim NewMDIChild As New frmMaintainSession
NewMDIChild.MdiParent = frmMain
NewMDIChild.TextBox1.text = "Hello World"