I have an MDI app which opens various Child forms. I want to drill down from these child forms and open other Child forms, but how do I ensure these are still childred on the MDI container?
The following code is on a button in a Child form and the form opens but not as a child in the MDI?
Should I somehow call a procedure from my Child form into the MDI and let the MDI "manage" the new sub-child? How best to do this?
Code:Friend FormDetail As frmDetail Private Sub cmdDetail_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmdDetail.Click ' ' Show the details Screen. If FormDetail Is Nothing Then ' A new Detail Form is Required. FormDetail = New frmDetail(thisUser, mstrStartDate) FormDetail.StartPosition = FormStartPosition.CenterParent 'Display the new form. FormDetail.Show() End If ' End Sub This opens a form but not as a child of the MDI.




Reply With Quote