Questions tagged [mdiparent]

MDI stands for Multiple Document Interface. A MDIParent form can contain several MDIChild forms each of them doing indipendent things, but sharing the same parent container, menus and controls.

A MDIParent is an option to consider in developing an application displaying several documents at once, since it allows users to easily identify what belongs to an application and what is part of another.

220 questions
13
votes
5 answers

Opening a child form from another child form and set MDI to parent form - how to do?

I have a MDI form. within this MDI form I can open some child forms using: This is within MainForm Form1 f1 = new Form1; f1.MdiParent = this; //this refers to MainForm (parent) f1.Show(); This works as expected! But Now, while I am in the child…
Dumbo
  • 13,555
  • 54
  • 184
  • 288
12
votes
2 answers

Size/Location of Winforms MDI Client Area

Inside an MDI form is a client area that hosts the mdi child forms. How do I find out how big that area is? The best I can come up with so far is finding the total size of the parent's potential client area (mdiparent.ClientRectangle) and then…
Jeff
  • 8,020
  • 34
  • 99
  • 157
8
votes
15 answers

How to avoid Multiple Child forms shown in MDIParent C# Win Forms

I want to avoid my child form from appearing many times when a user tries to open the child form which is already open in MDIParent. One way to avoid this is by disabling the Controller (in my case BUTTON) but I have given a shortcut key (Ctrl+L)…
panindra
  • 646
  • 2
  • 11
  • 33
8
votes
4 answers

How do I display a popup from a WebBrowser in another window I created?

I am trying to implement a simple web browser control in one of my apps. This is to help integrate a web app into a toolset i am creating. The problem is, this web app absolutly loves popup windows.... When a popup is opened, it opens in an IE…
Stuart
  • 267
  • 1
  • 5
  • 15
8
votes
3 answers

How to remove gray background on MDI parent form?

What I'm trying to do is draw some glass on a form marked as an mdi container. However as soon as the IsMdiContainer is set, the form adds an MdiClient to it's list of Controls. At this point something happens to the parent form - almost like a dark…
Dylan
  • 1,919
  • 3
  • 27
  • 51
7
votes
2 answers

How to bind Image in Grid View on Windows Forms?

I bind image to GridView from Resource folder.When I load that Form image will be bind.But When call that form from MDIPARENT form Image will not be showed.I attach image and Code below. Bind Image in Grid DataGridViewImageColumn ic = new…
Praveen S
  • 650
  • 2
  • 12
  • 35
6
votes
6 answers

C# MDI Parent detect when MDI Child is closing?

I'm attempting to detect, on the MDI parent, when my MDI child form closes, and react accordingly. The MDI parent shouldn't do anything until the MDI child closes. Here is my code, I'm unsure as to what I'm doing wrong, but the form closed event…
CODe
  • 2,253
  • 6
  • 36
  • 65
6
votes
1 answer

MDIParent Tiling children

Is there any way to tile all of the form children of an mdi parent easily? I'm looking for most of the functionality that windows offers, tile cascade. Anyone know of an easy way?
Dested
  • 6,294
  • 12
  • 51
  • 73
5
votes
1 answer

Merge menu strip items for MDI windows

How can I merge menu items of parent form and child form with same menu name?
fariba
  • 665
  • 1
  • 8
  • 7
4
votes
4 answers

mdi child form maximized windowstate - BorderStyle

I want to open a child form inside parent with maximized windowstate. I don't want to let the user minimize/ maximize/ close that child window, so I set BorderStyle = None for childwindow and also set MaximizeBox and MinimizeBox properties to…
techBeginner
  • 3,792
  • 11
  • 43
  • 59
4
votes
2 answers

How can I make MdiChild forms be in tabs in C#?

I have a MDIparent Forma and which has some mdichild forms in it. Can you help me some how put the mdichilds in Tabs like google chrome , firefox , IE , Opera ...
Pedrum
  • 634
  • 3
  • 7
  • 16
4
votes
3 answers

Winforms MDI "Desktop" Area Boundry

The default MDI parent control has a large "desktop" area that can display multiple child forms. Users can drag forms to the edge of this desktop area so that most of the child form is off the screen. (A scroll bar then appears in the MDI parent) I…
Jeff
  • 8,020
  • 34
  • 99
  • 157
4
votes
2 answers

How to open a mdi child form from another with vb?

How to open a mdi child form from another with vb in the main mdi parent?
Sein Kraft
  • 8,417
  • 11
  • 37
  • 39
4
votes
5 answers

Change backcolor or background image of a MDI Container form in .net

i need to change the backcolor or background image of a mdi parent in my application. i tried changing the backcolor or specifying a background image, it won't work. i also tried looping the controls in the form to get the mdiclient and change its…
Jepe d Hepe
  • 899
  • 5
  • 22
  • 42
4
votes
0 answers

control box showing twice

In my opening form I am using an MdiParent but the ControlBox is showing twice (see image). I set the ControlBox's property to false in all the child forms. But it didn't change. How could I close the control boxes?
witchqueen
  • 73
  • 3
  • 12
1
2 3
14 15