473,586 Members | 2,776 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MdiClient in a SplitPanel

Hello.

I am using .Net 2.0, C#. and am trying to put a MdiClient control into
a SplitPanel of a SplitContainer.

First, I put a SplitContainer called splitContainer1 into the form.

In the Form_Load handler, I use the following,

MdiClient mdiClient = new MdiClient();
mdiClient.BackC olor = Color.White;

Form mdiForm = new Form();
mdiForm.Control s.Add(mdiClient );
ChildForm childForm1 = new ChildForm();
childForm1.MdiP arent = mdiForm;
childForm1.Show ();

Form childForm2 = new Form();
childForm2.MdiP arent = mdiForm;
childForm2.Show ();

splitContainer1 .Panel1.Control s.Add(mdiClient );

It seems good at the beginning, however, when I click on a child form,
its titlebar does not highlight. I can still move the child forms, but
their titlebars are not highlighting. Do you know how to solve this
problem? Thank you very much!
Gilbert

Feb 22 '07 #1
0 1939

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

Similar topics

1
2996
by: David | last post by:
Hello, I'm starting with java and i'm having problems to display an image in a splitpanel with a scrollbar. I have different files but those required are described below. I think the problem is coming from the file RightPanel.java here below does do not display the image. There is no problem of compilation , it works fine. Just that the...
1
2779
by: John F | last post by:
Is there a way to place controls on the surface of MdiClient and have it always stay in the background when new child forms are loaded into the MDI? When I place controls on the surface of an MDI app and load child forms, the controls place on the surface poke through the child form. In the MDI paradigm, is it not wise/proper to use the...
1
1723
by: pigeonrandle | last post by:
Hello. I hope you are all well. I've been trying to get the text from an MDICLIENT window (recognised by SPY++ as 'WindowsForms10.MDICLIENT.app3'). When i try to get the text using SendMessage(WM_GETTEXT), or good old GetText(), i get an empty string returned. Eh? Spy++ doesn't seem to get the text either. Do i need to use some WM_MDI*...
2
2320
by: Brian Tkatch | last post by:
Not sure if this is the way it's supposed to be, but after a Layout event on an MDI form, the form's new width is set, but the MDIClient's width is not. As an example, start a new Windows Application, and for the code use: Public Class Form1 Dim TextBox1, TextBox2, TextBox3 As New TextBox Dim The_MDIClient As MdiClient
6
7840
by: =?Utf-8?B?bGpsZXZlbmQy?= | last post by:
Is there any way to change or turn off the border of an Windows.Forms.MdiClient control? In my opinion the 3D bevel that the control uses is outdated and looks poor in my app. The best would be a single line border that custom draw so I can control the color of the border. Thanks for any help! Lance
4
1683
by: =?Utf-8?B?bGpsZXZlbmQy?= | last post by:
Is there any way to enable double buffering in an MdiClient control? I have a case where I need to hide all of the MdiClient forms and interactively draw a custom background in an MdiClient control but without double buffering the flicker is unbearable. Thanks for any help! Lance
8
1663
by: Phil | last post by:
Is it possible to find the size of the MDIClient area, excluding the space already used by docked controls? I have thought I could perhaps create a new control, set it's Dock property to Fill and see how big that is, but there must be a better way. I would have to do this in the Resize event TIA Phil.
0
1165
by: my4color | last post by:
Hello every one, My development environment is c#. * Design -I have one MDI parent, it has one MDI child, -There is a toolbar on to the MDI parent. -Then there is Two list view into the MDI client that are horizontally align one dock on top and other is fill. - listview1 is on top on MDIClient.
1
1667
by: Stefan Hoffmann | last post by:
hi @all, I have a simple draw control which uses the OnPaint event: protected override void OnPaint(PaintEventArgs pe) { base.OnPaint(pe); CalculatePaint(); DrawCanvas(pe.Graphics); if (ShowGrid)
0
7839
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...
0
8200
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. ...
0
8338
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7954
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...
0
8215
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...
0
6610
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...
0
3864
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1448
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1179
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.