mdi

Delphi MDI Application and the titlebar of the MDI Children

I've got an MDI application written in Delphi 2006 which runs XP with the default theme. Is there a way of controlling the appearance of the MDI Children to avoid the large XP-style title bar on each window? I've tried setting the BorderStyle of the MDIChildren to bsSizeToolWin but they are still rendered as normal Forms. ...

Windows Form Ordering using MDILayout

Hi, I have a very specific problem using C# and a Windows MDI Form application. I want to display two (or more) images to the user, a 'left' and a 'right' image. The names of the images are concealed from the user, and then the user selects which image they prefer (this is part of a study involving medical image quality, so the user ha...

MessageBox loses focus in maximized MDI form

I have an MDI application (written in .NET 2.0) which lets users open multiple child forms. The child forms are always maximized inside the MDI parent. When the MDI parent is maximized and I attempt to do a MessageBox.Show, the MessageBox doesn't show. If I do an alt-tab (or even just press alt) the MessageBox pops to the front. Any ...

MDIParent Tiling children

Is there any way to tile all of the form children of an mdi parent easily? I'm looking for most of the functionality that windows offers, tile cascade. Anyone know of an easy way? ...

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

Using KeyDown event in the parent window of a Delphi Mdi Application

How do I get the KeyDown event to work in a Delphi (2007) MDI Applications Parent window, even if a Child window has focus? I would like to implement a shortcut key (F1) that brings up a help screen in a MDI application, I have added the KeyDown procedure to the MDI Parent window and enabled KeyPreview in both the Parent and Child wind...

Windows Forms, getting a property from parent form

I'm having a bit of a problem. I have a datatable in the parent form. I open a dialogbox form that gets the datatable property and creates a checkboxlist. This will be used to export those columns. But when I run the application the parentform property is null. I've tried setting it in the parent and dialogbox form (I assumed this would ...

Multiple control buttons for a maximised MDI child in .NET WinForms

That's what I get when I try to automatically maximize MDI children. The code is something like this: this.IsMdiContainer = true; child = new Form(); child.MdiParent = this; child.WindowState = FormWindowState.Maximized; child.Show(); Any ideas why do I get multiple control buttons ? ...

How do I discover if my delphi application currently has a modal window?

I've got a timer running in my Delphi MDI application and I'd like to use it to pop up a message if something changes in the background. But I don't want that message to pop up when the the application has a modal dialog in the foreground because the user couldn't do anything about it. So what I'd like to know is how can I check for th...

How to prevent ToolStrip from docking in another ToolStripContainer?

I have an MDI application that allows me to open different types of child windows. I can open multiple (but different) instances of the same type of child window. (Example: I can open 3 instances of child window type A and 2 instances of child window type B. All 5 windows are distinct entities and do not share data until unless the us...

How do you setup a handler for the dragover/dragdrop events in the MDI client area?

Using C# and the .Net framework 2.0. I have an MDI application and need to handle dragover/dragdrop events. I have a list docked to the left on my application and would like to be able to drag an item from the list and drop it in the MDI client area and have the correct MDI child for the item open. I can't seem to figure out where to att...

Good way to stretch object over multiple classes

Hi, I have a collection of orders. I would like to hit the database once, retrieve the orders, store them and then be able to access this collection over multiple forms. I know in asp.net, you can use things like Application Object or Session Object but how do you do it in a win form app? I was thinking of creating a static collection th...

Winforms + MDI children

In WinForms, is there a way to specify initial starting locations of MDI Child windows in a somewhat intelligent manner? I can apply a manual position, or have it center parent, but neither of these options take much thought into existing windows. I'd like to know if there is built in way to do a "smart arrangement", or if I need to im...

MDI Pros & Cons

I have inherited a application framework from the previous developer where I now work. This framework utilizes multiple parent/child relationships. In many instances parent/parent/child occur. I asked why he WASN'T using MDI and he stated that years ago, when he had started, MDI had major shortcomings concerning the previously stated ...

Difference between .Owner property and ShowDialog(IWin32Window owner) ?

I presume a winform's owner can be set explicitly via the .Owner property OR by passing the owner in the overloaded method ShowDialog(IWin32Window owner) I am unable to understand why these methods exhibit different behavior when working with MDI forms. I have created an MDIParent and an MDIChild. I also have a simple winform MyDialo...

How can I take eclipse out of MDI mode?

Does anyone know of a way to make Eclipse an SDI application rather than an MDI one? SDI - Single document interface, each pane is its own window MDI - Multiple document interface, all of the panes are stuck inside one "master" window. Eclipse is an MDI application. All of the little panes (like the call stack, variable viewer, ect) ar...

MDI form 'creep' (position change in MDI window)

I have a VB.NET MDI WinForms app. My users have been complaining about form creep (as they call it), this is where each time you open a specific form within the main MDI window it opens slightly below and to the right of the location it loaded previously - i.e. it starts in the top left of the window and works its way down to the bottom ...

Glass look for MDI windows under Vista

I am developing a winforms MDI application in C# in VS 2008. I have noticed that the MDI forms don't have the glass look under Vista. Is this by design? Is there a simple way to get the glass look for these windows? ...

Looking for a Visual Studio toolbox style navigation for desktop applications

I'm working on a project that uses an MDI application with a navigation panel on the side. Currently it is a ListView. However, I would like to redesign it to be similar to the toolbox in visual studio 2008. If this is something that would require overriding the default paint method, it would also help if you could provide some good ref...

How do I gracefully exit a MDI form that has code executing in Delphi

I have a MDI application written in Delphi 2007. If the user exits a form within it whilst code is executing it causes an exception, because the code is trying to update a component or use an object that has been freed with the form. Is there anyway I can tell if code is executing in the exit event or is there a standard way to deal wi...