By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,467 Members | 1,520 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,467 IT Pros & Developers. It's quick & easy.

MDI Child window behavior

P: n/a
Hello all,

I am trying to develop a Windows Forms application in Visual C#.NET 2005. I
have created a FormMainMDI, which has the IsMDIContainer property set to
true. I have created a second form, FormClients, which displays information
about the clients in the system. This form has the following constructor:

public FormClients(FormMainMDI parent)
this.MdiParent = parent;

Which should link it to the FormMainMDI. I have a button in the FormMainMDI
that launches FormClients. This all works beautifully. However, the window
behavior of FormMainMDI and FormClients is not how I want it to be.
Currently, the FormClients pops up on top of and "outside of" the
FormMainMDI. That is, I can drag the FormClients outside of the boundaries of
the FormMainMDI. What I would rather have happen is have the FormClients be
contained inside the FormMainMDI, so that a scrollbar would appear if the
arrangement of its child windows was larger than its area. Effectively, I
want to implement a windowing behavior similar to the behavior of Microsoft
Access. What do I need to do to enable this kind of functionality? Thanks,

Matt Martin
Mar 28 '06 #1
Share this Question
Share on Google+
1 Reply

P: n/a
If you have IsMDIContainer it should have worked just fine. In the code where
you are launching the FormClients ensure that you are creating an instance
using the parameterized constructor of FormClients.

Mar 28 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.