473,797 Members | 3,212 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 6230
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 toolStripButton 1_Click(object sender, EventArgs e)
{
// Form2 is the MDI child form
Form2 frm = new Form2();
frm.MdiParent = this;
frm.Dock = DockStyle.Fill;
frm.Show();
}

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

=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

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
http://msdn.microsoft.com/subscripti...t/default.aspx.
=============== =============== =============== =====

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!

Sincerely,
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

3
3453
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 time.... Thanks in advance! E.T.
1
1690
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 without closing the form first excel closes. Help appreciated.
6
3083
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. Is this doable? Also, it seems that the TreeView nodes do not have a click event. Is that correct? Thanks, J.S.
1
1954
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. The goal is to compensate for different screen resolutions. I am thinking placing this form with all the pannels in an MDIcontainer form will give me scrollbars. I can get scrollbars on the pannel form, but since I have splitters - the...
1
2846
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 UserControl. So far, so good... I can see the SplitContainer in the new UserControl. However, I have a problem. I can't add a control in the Panel2 of the SplitContainer of the UserControl which inherit from the UserControl with the SplitContainer...
1
5396
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 change the name of the panels. They are splContainer.Panel1 and splContainer.Panel2... very annoying. Thanks for any help, Ron
7
10406
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 termination code. I have tried to use my first splitter moved event to set the splitter position but I am getting several splitter moved events before my form is displayed. One is from the form initialization code and the second is from my code that...
0
1300
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 to load my user controls. But now I want to sometimes have another user control (narrow.. to show a list) next to (on the right of) my ListBar. I'll want the right panel to spring/maximize to as much space as it can take up. If there is just...
1
2127
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 is closed. When the form is load up the settings should be restored. The problem I have is that everytime the form is loaded the splitter is not positioned correctly. Everytime a value is added to the original value of saved one. I figured it out...
0
9537
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10469
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10209
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10023
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9066
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7560
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6803
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4135
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.