|
-
Dec 1st, 2003, 04:19 AM
#1
Thread Starter
Addicted Member
Child of an MDI Child
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.
-
Dec 1st, 2003, 05:45 AM
#2
I wonder how many charact
You haven't specified it as a MDI child. Just because you open a form from code that happens to be sittin in a MDI child, doesn't mean that form is part of the MDI container.
-
Dec 1st, 2003, 06:14 AM
#3
Thread Starter
Addicted Member
*** Resolved ***
oops, you are dead right. I can use the Parent property of the curent child form to make my new form another child - a sibling ;-)
Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|