|
-
Aug 23rd, 2007, 11:10 AM
#1
Thread Starter
Addicted Member
Access all MdiChild form on runtime
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.
Last edited by engineer; Aug 23rd, 2007 at 11:43 AM.
software engineer
-
Aug 23rd, 2007, 01:01 PM
#2
Re: Access all MdiChild form on runtime
Your MdiParent has a property that gets an array of all of its MdiChildren forms:
http://msdn2.microsoft.com/en-us/lib...en(vs.80).aspx
-
Aug 23rd, 2007, 01:19 PM
#3
Thread Starter
Addicted Member
Re: Access all MdiChild form on runtime
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.
-
Aug 24th, 2007, 07:47 AM
#4
Re: Access all MdiChild form on runtime
Every child has an MdiParent property, so this.MdiParent.MdiChildren gets you access to all the child forms from a child form.
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
|