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
3
votes
3 answers

Delphi Multiple MDI Children causes window state change

I'm looking to prevent MDI child WindowState changes occurring when creating a second MDI child... I have an application that I'm developing, written in Delphi. Through a little Delphi/Windows magic, the application has multiple MDI Parents and…
0909EM
  • 4,761
  • 3
  • 29
  • 40
3
votes
1 answer

VB6 Forms in two different projects working under one MDI

The Requirement... I've a massive VB6 Project with tons of forms in it. One parent MDI form and all other forms open inside it from different menu actions. I need to split this project, say keep the main form there, and extract other groups of…
Raheel
  • 421
  • 1
  • 4
  • 7
3
votes
1 answer

C# call MDI child from child form

I have these forms: MainScreen - MDI container DataBaseOutput - child NewAnime - child DataBaseOutput has a tab control that holds datagrids, each for different tables. I use an access database. In those tabs, there is a menustrip, where the…
Deep Frozen
  • 2,053
  • 2
  • 25
  • 42
3
votes
5 answers

MDIchild form goes behind the panel

I have a panel in a MDI form and there are some controls in the panel. When I open MDIChild forms, the forms go behind the panel. I tried forms.BringtoFront() and panel.SendtoBack().But nothing works. Then I set setchildIndex of panel to 0,didn't…
AlaaL
  • 333
  • 9
  • 28
3
votes
4 answers

MDI Parent Form Problem setting Parent

I am using a MDI parent form that has a childs and they show up very well when they are called up by this parent and i use to intensiate child form as ChildForm child = new ChildForm(); child.IsMdiContainer= this; child.Show(); works well as soon…
Afnan Bashir
  • 7,319
  • 20
  • 76
  • 138
3
votes
1 answer

How to close previous mdi child in parent form

I have a mdi parent form and I open my other forms in run time as mdi child form by this code: private void MenuItem_Click(object sender, EventArgs e) { childform = new childform (); frm.MdiParent = Mdiparent; frm.WindowState =…
R.Akhlaghi
  • 729
  • 1
  • 12
  • 23
3
votes
1 answer

Close all MDI child windows using Linq

I'm trying to use the following loop foreach (Form frm in this.MdiChildren) { frm.Close(); } and transcribe it into a Linq expression like so: this.MdiParent.MdiChildren.OfType
().ToList().ForEach(x => x.Close()); but this line shows me a…
greg dorian
  • 136
  • 1
  • 3
  • 14
3
votes
3 answers

Maximizing child mdi in limited area

I have a form which is a mdicontainer and has a menu strip at the top. I add a child form to my mdi container and when I maximize the child it maximizes over the menustrip. I want to know how to limit the child to maximize below the menustrip. …
Scott Chantry
  • 1,115
  • 5
  • 16
  • 29
3
votes
1 answer

MDI Form cannot change cursor

I am creating a Windows Form Application using an MDI Form. In the MDI Form I have a SplitContainer, in Panel1 is a TreeView and I load forms into Panel2. So far everything works with one exception, I cannot turn off the WaitCursor. I have tried…
2
votes
2 answers

Strange TaskBar Behaviour with MDI WinForm App

All, I am over half way through a MDI WinForm application and have started testing what we have so far on several different machines and I have found the following error on all machines (running Windows 7/Vista). The error is to do with the TaskBar…
MoonKnight
  • 23,214
  • 40
  • 145
  • 277
2
votes
2 answers

Access DBGrid1.Columns[1].Title.Caption from another Form

I am trying to access the Caption of the dbgrid.field from another form. I am using MDI here and both forms are MDIChildren. I tried to execute the following ShowMessage from another form but it caused an access…
Juke
  • 135
  • 2
  • 9
2
votes
1 answer

Is it possible to use ShowDialog from MdiChildForm without blocking all others MdiChildForms and MdiParent?

I need to open modal form (frmD) from MdiChild (frmB) form without blocking main form (frmA) and all others opened MdiChild forms (frmC). Then i switch to frmC the frmD is hidden. This is the similar question, but not for Mdi application. Is there a…
referee
  • 106
  • 3
  • 9
2
votes
2 answers

Cannot open and close a form inside of MDI form in C#

I'm currently using an MDI Parent Form and inside of it I will open a Form by clicking in one of the items from the ToolStripMenuItem. I have a code which allows me to open that item only one time instead of opening multiple Forms. frmRegUser frm =…
Rekcs
  • 869
  • 1
  • 7
  • 23
2
votes
0 answers

Prevent closing of MDI Parent form when child has a message box activated

The child form checks for user work status (user status is a variable that stores current status of the user. Status can be :- working, pending or completed ) On child formclosing event I checked for user status if is not 'Working' then it should…
2
votes
1 answer

How to use the menu strip to show all open MDI forms C#

I need to display all open MDI forms when I click the window button in the menu strip. It should drop down and give you an option to select the active one. This is probably some simple answer but I have looked in so many places.
Hobbes
  • 107
  • 2
  • 8
1
2
3
14 15