Click to See Complete Forum and Search --> : Access all MdiChild form on runtime
engineer
Aug 23rd, 2007, 11:10 AM
Dear All,
I am new in C# and writing my very first program in it( A basic notepad).
Question: How can I access all opened forms (infact MDI child forms) in an MDI application at runtime.
Thanks.
nmadd
Aug 23rd, 2007, 01:01 PM
Your MdiParent has a property that gets an array of all of its MdiChildren forms:
http://msdn2.microsoft.com/en-us/library/system.windows.forms.form.mdichildren(vs.80).aspx
engineer
Aug 23rd, 2007, 01:19 PM
Thanks nmadd.
But what if I want to access Mdi child forms not fron MdiParent form but from one of the child form...
I will appreciate if you could help.
jmcilhinney
Aug 24th, 2007, 07:47 AM
Every child has an MdiParent property, so this.MdiParent.MdiChildren gets you access to all the child forms from a child form.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.