mdichild

Maximized MDI form behavior

My program shows some browser. From a browser user can open maximized MDI form with some report. When user is closing the report, first MDI form with browser is became maximized. 2 forms have same MDI parent. Can I change this behavior to leave my first browser form without maximizing after second report closed? ...

C# MDIContainer MenuStrip ControlBox on the left

Hi, when I open a child form the controlbox (close, min, max icons) in my menu strip is on the left side instead of the right side, when LayoutStyle is set to "Flow". How can I fix that? I want the ControlBox to be on the right side. Below an example, a menu strip (with two lines + controlbox) I've erased the items in this example......

MDI Child Form Load

Loading multiple child forms from a loop into a MDI parent form. They are displayed one at a time. I would like to display all the created forms at once. I tried only using the .Show() method after they are all created, but they still only display one at a time. ...

C#: Child form and Parent form refuse to close

I have a MDI application being developed using C# (VS2008). There are multiple child forms and they all seem to close when hitting the close button except for one form. And when this particular form is open the Parent form will not close either. I am not sure what other information to provide . Please help. ...

C# using class object in multiple forms changes all variables within class

I have a MDI application. One of the forms needs to be able to have multiple instances of it open at the same time. Within this app I have a Program class. For each instance of the form I need to place a Program object into each form. This is working, however, everytime data is changed it changes all of the Program objects within all of ...

VB.Net 3.5 MDI Application - MDIChild forms stop opening after N memory has been used.

Hi Guys, I hope someone may be able to help! We have a pretty large VB.Net MDI application that has been converted from VB6. When it is first run up with no MDIChild forms opened it uses about 35,000K. As more and more forms are opened (but not closed) the memory usage (according to Task Manager) creeps up at approximately 4,000K per f...

gotfocus() mdi child windows question (winforms)

I have a mdi and 3 child windows. The program start with an empty mdi. With a menu you can open each child window once. When i open for example 2 windows. And close the one on top. The one left(the window under the one i closed) should get focus. How can i manage this? why i need this? each childwindow has a event gotFocus. Depending ...

c# main menu and mdi forms

Hi there. 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 "isMdiContainer" set to "true" create a menu strip in in the mdi container create a child for...

MDI child form does not activate when clicked in client area

My VB.NET app supports several kinds of MDI child forms. Some kinds, but not others, are 'troublesome' -- they cause the focus mechanism to become weird. Once a 'troublesome' child form has been opened, NONE of the MDI child forms will become activated unless I click on either the title bar or the border. Clicking in the client area d...

MDI child form is not allowing other child forms to get focus

The application is an MDI container app. A specific child form (Form1) when loaded gets focus and will not release the focus. If another form is opened up, the user is not able to select any field within that form if the Form1 form is open. Also, within the Form1, the focus will not leave a combobox even to set focus to another field o...

C# mdi does not work properly

Hi, I have a C# mdi app. My problem appears whenever i open a child window: that child window somehow slides under the menu strip of the main form(mdi container) but only for the first time; when that window is back in foreground it arranges itself ok. The app is coded something like this, this is the main form(mdi container) which has...

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 already been created and shown in its default location. The result is that creating and pos...

Merge menu strip items for MDI windows

How can I merge menu items of parent form and child form with same menu name? ...

MDI Child at toolstripcontainer

Hi probably a very small issue - but I have no idea... I added MDIChild Forms to a toolstripcontainer ala: f.MdiParent = this; this.toolStripContainer2.ContentPanel.Controls.Add(f); f.Show(); This works quiet fine, but all the sudden I cannot activate this childs, i.e. Clicking to one of these windows will not keep it active. The wind...

Problem with controls in MDI form

I have placed a button on MDI form , now when I open a child form , the button remains on top and distracts the child form , is there a way to solve it? I have done following to send the button back when any child is activated.But I am wondering to call button1.BringToFront(); private void MDIParent1_MdiChildActivate(object sender, Even...

Windows MDI Child Form Title Bar

The MDI child forms, when shown, display their title bars for a split second. Then the forms are loaded normally. Is there any way for the forms to load without showing the title bar and form border. This is what happens... ...

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 more such functions like right/left/up/down arrow keys etc. that need to go to each of these...