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

VB.Net MessageBox.Show() moves my form to the back

I have an MDI application. When I show a message box using MessageBox.Show(), the entire application disappears behind all of my open windows when I dismiss the message box. The code is not doing anything special. In fact, here is the line that…
Pittsburgh DBA
  • 6,672
  • 2
  • 39
  • 68
3
votes
2 answers

Why does the last MDI child form that was closed not get garbage collected?

We've had problems with memory leaks in our application. I've managed to replicate one of the problems with the following simple example: Replication setup 1) Create the following helper class which will be used to track object…
RickL
  • 2,811
  • 3
  • 22
  • 35
2
votes
1 answer

WinForms MDI Child Forms

I have a form frmMain set up as MDI Parent. Within that I can open another form frmSearch as a child form inside the Parent. However, what I am having an issue with, is I now want the user to be able to open a third form frmCase, from a click on…
PJW
  • 5,197
  • 19
  • 60
  • 74
2
votes
2 answers

Shift between MDI child forms

I have a MDI form, and I want to be able to shift between the child forms. Is there any method to do this? I know there I can use CTRL+F6 to achieve this, and I could simulate those keys; but I would like an easy solution.
Tenza
  • 2,301
  • 2
  • 16
  • 18
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
3 answers

C#.Net Panel Control and MDI Child forms - issue

Hi i am stuck in MDIform with panel control. I have one panel control Docked (fill) to parent MDI form. When i try opening new child form with menu click event the child form doesn't show up in MDI container. After debugging few times, i set the…
bhu1st
  • 1,282
  • 11
  • 23
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
1 answer

How can i know new MDI form added into parent MDI form?

I have created one parent form and raises the ControlAdded event for that. And also set the property IsMdiContainer to true for this parent form. And then if I create a new forms called ChildForm1 and ChildForm2 as like below code, public partial…
Jagadeesan
  • 233
  • 1
  • 13
2
votes
2 answers

How to send KeyDown message to all Child windows in MDI

I need to send a WM_KEYDOWN message to all the Child Windows in my MDI app. The idea being that a particular key press refreshes a window and I want to refresh all child wnds at just a single key press. Other than refresh there would be couple of…
user173438
  • 171
  • 1
  • 2
  • 8
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
2
votes
1 answer

C# Restore size of Form

I have ovveride the event onResize for MDI Child Form, this is the code: protected override void OnResize(EventArgs e) { base.OnResize(e); if (WindowState == FormWindowState.Maximized) { WindowState = FormWindowState.Normal; …
Lorenzo Belfanti
  • 1,205
  • 3
  • 25
  • 51
2
votes
2 answers

Controlling the placement of fsMDIChild windows in Delphi

How do I control the placement of an MDI child window (FormStyle := fsMDIChild) in Delphi or C++Builder? I know that I can set Left, Top, Position, and so on, but for an MDI child in particular, these don't take effect until after the window has…
Josh Kelley
  • 56,064
  • 19
  • 146
  • 246
2
votes
1 answer

c# main menu and mdi forms

So far in my life, as a .net developer, I have made heavy use of mdi forms to display particular "menu points" such as for instance "module 1" "module 2" and so on. I have been doing this the following way: create a parent form with…
1 2
3
20 21