473,387 Members | 1,641 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

MDI controls overlap MDI child forms

Hello,
I am working on a windows application in C#.NET 2.0.
I am using an MDI form with multiple buttons on it. Clicking on the buttons opens a child form.
Now, the problem i am facing is that the buttons on the parent form are coming on the top of the child forms and not hiding behind. I need the child form to cover the controls on the MDI form.
Would appreciate if someone can guide me in the correct direction.

Thanks,
Rupinder
Dec 13 '07 #1
5 8773
Shashi Sadasivan
1,435 Expert 1GB
Hello,
I am working on a windows application in C#.NET 2.0.
I am using an MDI form with multiple buttons on it. Clicking on the buttons opens a child form.
Now, the problem i am facing is that the buttons on the parent form are coming on the top of the child forms and not hiding behind. I need the child form to cover the controls on the MDI form.
Would appreciate if someone can guide me in the correct direction.

Thanks,
Rupinder
Which control contains the button for opening child forms?
Dec 13 '07 #2
Which control contains the button for opening child forms?
The buttons are in a group-box control.
Dec 14 '07 #3
Shashi Sadasivan
1,435 Expert 1GB
So you have the group box control placed on the MDI form?

have you have a look at tool strip ?

try docking the groupbox and check if that changes anything.
Dec 14 '07 #4
So you have the group box control placed on the MDI form?

have you have a look at tool strip ?

try docking the groupbox and check if that changes anything.
:( Docking did not help it.
I also tried having a new MDI form and placing a button directly over it without using any container like panel, groupbox etc.
I face the same problem in that case too.
Dec 14 '07 #5
hi, u have to place all the button controls in a panel. During the child form load send this panel control to back .
panel1.SendToBack();

while closing the child form in the formclosing event find the mdiparent form control and bring to front.

Control[] cnt= this.MdiParent.Controls.Find("panel1", false);
cnt[0].BringToFront();


hope this will solve your problem
Apr 4 '10 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Brindley | last post by:
Hi there, In my Mdi application, I have placed a set of controls on the parent form to call child forms. The problem is that the controls hide the child forms. I have used SendToBack when Im...
2
by: Terrance | last post by:
I'm hoping that there's someone out here that can help me with a coding problem. Here is the scenerio: I have a MdiParent Form on this MdiParent form there is a listview control and several text...
4
by: John Tyce | last post by:
The problem that I am now having, involves refreshing controls. I have allot of text boxes, several combo boxes and grids. These controls are showing live data from an Oracle database. I have dates...
2
by: Richard Myers | last post by:
Hello, When inserting a label into a group box, if the label exceeds the width dimensions of the group box, the group box lines (or a portion thereof) disappear. In a panel i just <send to...
2
by: JohnR | last post by:
Let's say I have an MDI parent form with a textbox. If I create an MDI child form and, at runtime, move the MDI child window over the textbox on the MDI parent, the textbox appears in front of the...
6
by: Jrsmith | last post by:
I am developing a mdi application that will act as a front end to a database. I am finding that when i show any of the mdi child forms in my application it is noticeable that the form is shown...
15
by: rizwanahmed24 | last post by:
Hello i have made a custom control. i have placed a panel on it. I want this panel to behave just like the normal panel. The problem i was having is that the panel on my custom control doesnt...
1
by: sklett | last post by:
I've read several articles/blogs/threads about anchoring/docking child controls in a FlowLayoutPanel. It sounds like it *should* work, but I can't get it to work for the life of me. Jon Skeet: ...
6
by: Ron | last post by:
I am building a utility that needs to extract all Windows forms control names from a compiled assembly for documentation purposes. I am currently using reflection, but not all of the controls are...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.