943,987 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Marked Solved
  • Views: 1308
  • C# RSS
Oct 31st, 2009
0

call sub child froms in mdi form

Expand Post »
hi,
i have a mdi form named MDIParent2 in my application and it has many child forms.
child form 1 named frmClient has 3 child forms now i want to call them in MDIParent2.
can any one tell me how to i call sub child & sub - sub child forms in same parent form.
Reputation Points: 10
Solved Threads: 0
Light Poster
kool.net is offline Offline
28 posts
since Oct 2009
Oct 31st, 2009
0
Re: call sub child froms in mdi form
Upload a sample project demonstrating the behavior you are currently experiencing and how you would like it to work. I'm afraid I don't understand what you are asking.
Featured Poster
Reputation Points: 1749
Solved Threads: 735
Senior Poster
sknake is offline Offline
3,948 posts
since Feb 2009
Oct 31st, 2009
1
Re: call sub child froms in mdi form
Hello.
I'm not sure if this is what you're looking for, but to get array of child forms, you can use the MdiChildren property, e.g.:
c# Syntax (Toggle Plain Text)
  1. this.MdiChildren[0].BackColor = Color.Black;
  2.  
  3. //and in same manner for sub - sub child forms
  4. this.MdiChildren[0].MdiChildren[1].BackColor = Color.Black;
Reputation Points: 293
Solved Threads: 82
Posting Whiz
Antenka is offline Offline
361 posts
since Nov 2008
Nov 2nd, 2009
0
Re: call sub child froms in mdi form
my problem solved with this code

C# Syntax (Toggle Plain Text)
  1. form info = new frmclientinfo();
  2. info.MDIParent = this.MDIParent;
  3. info.Show();
May be its help anyone in future.
Reputation Points: 10
Solved Threads: 0
Light Poster
kool.net is offline Offline
28 posts
since Oct 2009

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: class file in C#...help ASAP!!!!
Next Thread in C# Forum Timeline: C#Net 2003 - Retrieve Data from DataGrid





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC