dcsimg
Login | Register   
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.


Tip of the Day
Language: VBNET
Expertise: beginner
Mar 2, 2002

WEBINAR:

On-Demand

Application Security Testing: An Integral Part of DevOps


Showing and enumerating MDI child forms

An MDI child form is a regular form whose MdiParent property points to its MDI container form, so the code that creates and displays a child window is very simple:

Sub ShowMdiChildWindow()
    ' Display the MenuForm form as a child of this form.
    Dim frm As New MenuForm()
    ' Make it a child of this MDI form before showing it.
    frm.MdiParent = Me
    frm.Show()
End Sub
A form that can be used either as a regular form or an MDI child form might need to determine how it's being used. It can do that by testing its MdiParent property or its read-only IsMdiChild property. You can list all the child forms of an MDI parent by using the Form array returned by its MdiChildren property:

Dim frm As Form
For Each frm In Me.MdiChildren
    Debug.Write(frm.Text)
Next
Francesco Balena
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
×
We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.
Thanks for your registration, follow us on our social networks to keep up-to-date