Click here to Skip to main content
11,494,174 members (61,332 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# .NET
i have two forms form1 and form2
form1 is mdi parent and form2 is its child
in form1 i have a richtextbox docked on it
so now when the mdi child opens
it remains hidden behind the richtextbox......
plzzz help !!!
Posted 6-Sep-11 10:10am
Edited 6-Sep-11 10:16am
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Placing a control on MDIParent in the area which is reserved for mdi children isn't good UI practice. If you need to constantly show something, consider adding necessary controls to toolstrip, status bar or for example a floating toolbox window etc.
  Permalink  
Comments
SAKryukov at 7-Sep-11 1:52am
   
This is of course correct, my 5, but the root of the problem is MDI itself.
Don't you think so? Please see my answer.
--SA
Mika Wendelius at 7-Sep-11 1:59am
   
Thanks SA.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

How much longer you guys are going to torture yourself and scare off your customers with MDI? This is evil.

Please see:
http://en.wikipedia.org/wiki/Multiple_document_interface#Disadvantages[^],
Question on using MDI windows in WPF[^],
MDIContainer giving error[^].

—SA
  Permalink  
Comments
Mika Wendelius at 7-Sep-11 2:00am
   
This is very true. +5 However I share the OP's pain because some of the applications to be maintained are so old that MDI was the best there was at that time...

If this is a new application then I guess there's no excuses :)
SAKryukov at 7-Sep-11 2:06am
   
Thank you, Wika.
You see, even if there are excuses... Customers want functionality and good usability, not excuses. :-)
--SA
Mika Wendelius at 7-Sep-11 2:08am
   
Yep, and a low price :)
SAKryukov at 7-Sep-11 2:14am
   
Aha, with a smile...
--SA
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

Although This question asked 1 year ago,i answer this.because it is question of many programmer.

thats so simple,you can do a trick and put all your controls on a child form and call that in mdi load event and whenever you want.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Have you tried to use: this.TopMost = true; on the midi-child?
  Permalink  
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 448
1 OriginalGriff 275
2 Nakul Chaudhari 240
3 CHill60 185
4 CPallini 175
0 Sergey Alexandrovich Kryukov 10,277
1 OriginalGriff 8,805
2 Sascha Lefèvre 3,704
3 Maciej Los 3,392
4 Richard Deeming 2,500


Advertise | Privacy | Mobile
Web04 | 2.8.150520.1 | Last Updated 26 Nov 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100