mdichild

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 invokes the message box from within an MDI Child form: MessageBox.Show(String.Format("{0} sa...

MDI child form problem in C#

When I maximize 1 MDI child form, all MDI child forms would be maximized too. Is it possible to have 1 form maximized and another one not? Thanks in advance. ...

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 don't like this feature. Is there a way to lock down the edge of the desktop area so tha...

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 subtracting off the sizes of components like toolbars, etc that take away from the client are...

MDI Child form calling, not generation.

Hello. I have an MDI form with 3 nested children with in it. As of right now all it can do is display a new form. For example: each time I press the menu button, the new child form(Form1) is created. Now, if I press that same menu button a second or subsequent time a new Form1 is created and it appears over the previous one. What I w...

Create Tabbed MDI Interface

I am using C# 2005 to develop an Windows application. I am planning to use a Tab Container to display the child forms. I have used a Menu Strip to display the menu and have set IsMDIContainer = true property of the MainMenu form. The MainMenu form also contains a Tab Control and I plan to display all child forms as Tap Pages in the Tab C...

Remove a TabPage

I am using C# 2005 to create a Windows application. I have a MDIForm (frmMainMenu) which contains a Menustrip and a TabControl. My ChildForm is frmPurchaseEntry. When the user clicks on a particular Menu option a new TabPage is created and the child form is displayed within the TabPage. I am using the following code in the MenuClick...

How to remove an MDIChild from its parent?

The main goal is to make an MDIChild form, FULLSCREEN. I just want to make my form, free of its Parent and change WindowState and BorderStyle of it for a fullscreen view. Is there any way to do this? ...

Windows Forms - MdiClient scroll bars not automatically appearing as expected

I'm writing a windows forms application in C# whereby some windows utilities can be launched (e.g. CMD prompt, Registry editor, Events Viewer etc) and placed in an MdiClient control on the main form. Everything is working great except that the scroll bars in the MdiClient control aren't automatically appearing when a child window falls ...

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 creation/destruction. public class TestObject { public static int Count { get; set; } public TestO...

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. Any help would be appreciated. ...

C#: How to know if a MDIChild is closed or opened in a MdiChildActivate event?

I have a MDI Parent, with several children, using DotNetBar component and Ribbon on the main form. I have a sidebar required for some of the MDI children, but different one from another, so in the MDI Children "Cajero" I need some buttons and on the other I need some others, and when, Cajero closes I want to hide that sidebar. The prob...

New MDI child resizes other maximized Forms

I have a project with a main MDI form. There is a child MDI form inside that is always present and cannot be closed (Is it possible to hide the close button while keeping the min and max buttons?). Because the child form is such an important part of the program, users like to have it maximized. When another MDI child pops up, the maxi...

Windows Forms - Communication problem between Child Forms

The prob statement: - Accessing functions of a child form from another child form within an MDI parent in a windows application(C#).. - Closing a child form (when navigating to a new child form), and invoking a method within the child form, and then navigate to the new form ? Using Infragistics NetAdvantage for Windows Forms ...

Problem with AuiMDI frames in wxPython.

I am creating a AuiMDIParent frame and inside that parent frame I have a AuiMDIChild Frame. Inside the child frame I have a panel which displays an image. My problem is that when I run my code (given below) I get the desired result, but when I try to close the main window that is the parent frame, nothing happens. Then when I close the c...

Resize a wx.MDIChildFrame

while i am creating each child frame it is visible as tabs in parent frame i need each child frame has a title bar minimize button and close button how can i achive it? also I need to check whether a child window is already exists or not to avoid duplicate windows thankz in advance ...

how to prevent a single MDI child form stealing focus from every other mdi child form

There are several MDI child form within my window, one of MDI child form after it's being launched will cause the focus mechanism to be weird, meaning a another MDI child window will not get the focus unless the title bar is clicked, clicking anywhere else in the mdi child form will not caused the form to focus. any thoughts? ...

LayoutMDI all but one child form

Hi All, I have an MDI Application and have a sort of menu that has been created using a child form so it stays within the parents window. What I would like is when I call LayoutMDI (or some variation) for all but this form to be cascaded, tiled ect but I can't seem to find a way to do it. I have tried overriding the LayoutMDI but that...

Pass Value between MDI Child in WinForm using C#

I have an MDI Parent, containing a MenuStrip. When I click on one of the Menu, two Child Forms are displayed simultaneoulsy. I have a TextBox and a Send Button on one of my ChildForm. When I type-in something in that TextBox and Click the Send Button, I need to show that value in the TextBox of my Second Child Form. What I had done is,...

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? ...