Questions tagged [mdichild]

MDI stands for Multiple Document Interface. A MDIChild form is a form contained in a MDIParent form and it shares parent's container, menus and controls. Usually MDIChilds form can be graphically organized to be tiled or cascaded automatically in the parent container.

309 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
5 answers

Maximize MDI child form

I'm working on a legacy WinForms MDI application and have some trouble making the child forms behave as I want. My objective is to have the child form always maximized (docked). The problem is, that even if I set MaximizeBox to false the…
Jay
  • 2,141
  • 6
  • 26
  • 37
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
11
votes
2 answers

Switching between Visual Studio windows/tabs web browser style

So, I'm not completely sure this is the best idea ever but I do find myself trying to switch tabs in VS 2010 using [CTRL] + [1, etc] to switch windows (tabs). Is it possible to configure VS to behave like a web browser causing CTRL+1 switch to the…
Andreas Bergström
  • 713
  • 1
  • 5
  • 18
10
votes
1 answer

How can I style a custom control based on if any of its children have focus?

We have a custom canvas which has specialized nodes that behave a lot like a standard MDI application's windows. The desired behavior is that if any of the child controls of the "window" have the focus, then that "window" is said to be active. Now…
Mark A. Donohoe
  • 28,442
  • 25
  • 137
  • 286
9
votes
5 answers

Form that was specified to be the MdiParent for this form is not an MdiContainer

I was working on an inventory software and suddenly came to know that I need some main form through which I should open all the other forms, so I created one named frmMainPanel and use a menu strip to link it to another I am successful in linking…
Jack Frost
  • 277
  • 2
  • 3
  • 12
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
7
votes
1 answer

How to customize the titlebar of a QMdiSubWindow with qss?

I'd like to customize the titlebar of a QMdiSubWindow. For that I use a qss. QMdiSubWindow { border: 1px solid #000000; background: #000000 } QMdiSubWindow:title { background: #000000 } The problem is when applying this qss, the window icons…
devBox
  • 71
  • 1
  • 3
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
2 answers

It is possible to create more than one MDI form in a delphi application?

I developed a mdi application that has in its main form several child windows that are created at runtime. The child windows are custom forms. I want to display those custom forms in another form from the same application. Is this possible?
zoomz
  • 125
  • 2
  • 10
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
5
votes
4 answers

FormClosing Event not called for MDI Child Form

I am trying to close a formular when opening a new one. When closing an formular, I want to process some special logic in the closing event. But the closing event is never called, neither in the FormClosing nor in the Closing event, nor in the…
Rookian
  • 19,841
  • 28
  • 110
  • 180
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
5
votes
1 answer

how to prevent all MDI child from being maximized, if one of the MDI child is maximized

I have a MDI form with multiple child, when i maximize a MDI child it will automatically Maximize all the child. I do not want to use Set Maximum size or Set Minimum Size property. Is there any way to prevent this behaviour of mdi children ?
user2971845
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
1
2 3
20 21