473,231 Members | 1,782 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,231 software developers and data experts.

using splitContainer in an MdiContainer?

We developed a Win application that basically consists of an Mdi Form and
several child Forms. Now we want to change its appearance so that it has an
Outlook-like appearance: it would have a panel on the left with several
buttons, and when I press those buttons the individual Forms would open up
on the right panel.
How difficult would this transition be? I've added a splitContainer to my
Mdi Form, but I'm not sure how to display a Child Form on to my right panel.

Any help is appreciated.

I'm using VS2005.
Jun 28 '07 #1
2 6191
Hi Doc,

Based on my understanding, you'd like to mimic the Outlook UI in your
appilcation, i.e. have a panel with several buttons on the left and show
the forms on the right in the main form. If I'm off base, please feel free
to let me know.

Firstly, I don't think it's good to use SplitContainer for your purpose,
because there will be some limitations when you show a form inside a
control, e.g. SplitContainer, Panel and etc. For example, if the child form
has a TextBox in it and then you show the form within a SplitContainer, you
will find you can't set the input caret within the TextBox when you click
in the TextBox.

I suggest that you use a ToolStrip in the MDI parent form and dock it to
left. You may show your MDI child forms in the MDI parent form and dock it
to fill.

The following is a sample.

private void toolStripButton1_Click(object sender, EventArgs e)
// Form2 is the MDI child form
Form2 frm = new Form2();
frm.MdiParent = this;
frm.Dock = DockStyle.Fill;

Hope this helps.
If you have any question, please feel free to let me know.
Linda Liu
Microsoft Online Community Support

Get notification to my posts through email? Please refer to

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at

This posting is provided "AS IS" with no warranties, and confers no rights.

Jun 29 '07 #2
Hi Doc,

How about the problem now?

If you need our further assistance, please feel free to let me know.

Thank you for using our MSDN Managed Newsgroup Support Service!

Linda Liu
Microsoft Online Community Support

Jul 3 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: 2003et | last post by:
Is it possible to use nested MDIContainers? In Visual C#, I want to use another MdiContainer in a MdiContainer. But it gives error, saying that an MdiContainer cannot be child at the same...
by: Christoph L | last post by:
If I open a form in a mdicontainer with an axwebbrowser-control that show´s an excel-document and I close the form first and then the application excel leaves open If I close the application...
by: J.S. | last post by:
I have a TreeView control in the left panel of a SplitContainer. When I click on various nodes in the TreeView I would like different sets of buttons and textboxes to appear in the right panel. ...
by: Rich | last post by:
Hello, I have a form with 4 pannels docked to the form, each other, with splitters, ect. that I can drag and change the size of the pannels... I need to place this form in an MDIcontainer form....
by: Martin | last post by:
Hi all! I made a UserControl with a SplitContainer in it. I put some controls in the SplitContainer.Panel1. After that, I created a new UserControl which inherit from the previously created...
by: Ronald S. Cook | last post by:
At design time, how can I change the name of the SplitterPanels that are children within my SplitContainer control? I was able to name the SplitContainer splContainer, but I can't see how to...
by: newscorrespondent | last post by:
I want to save the state of a splitcontainer when an application ends. I also save the form state. The SplitContainer does not seem to have a well defined place to put intiialization and...
by: Ronald S. Cook | last post by:
Thanks in advance for reading/responding. In my Windows forms app, I was going to have an Infragistics ListBar control docking/filling the left panel of a SplitContainer, and use the right panel...
by: Zoliq | last post by:
Hi, I have the following problem: have a splitcontainer with horizontal orientation. The application saves the current settings of the user interface including the splitter distance when the form...
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

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.