mdi

Why aren't my MDI child forms showing a shadow?

折月煮酒 提交于 2019-12-01 09:39:53
In my application when I make a form as a child form of my main MDI parent form, the child form stops showing Windows 7 default shadow effect behind forms. How do I get child forms shadow to show? Form obj = Application.OpenForms["My_form"]; if (obj != null) { obj.Focus(); } else { My_form c = new My_form(); c.MdiParent = this; c.Show(); } This is normal, entirely by design. MDI child windows are not top-level windows, but rather a special type of child window that is designed to be hosted in an MDI parent window . The Desktop Window Manager (DWM), which is what is responsible for the Aero

C# Panel As MDI Container

走远了吗. 提交于 2019-12-01 04:51:48
问题 In C# i want to create a panel that has the properties of a MDI container ie. isMdiContainer = true. I tried something like this form.MDIParent = this.panel1; But that dont work. Any suggestions? 回答1: You could create custom form, remove all borders, and toolbars to make it look as closely to a panel as possible. Then make that new custom form a MdiContainer. Basically, you can only set the IsMDIContainer property on a Form. This means that only a form can be a MdiContainer. 回答2: It is

Move one form to another winforms - C#

谁说我不能喝 提交于 2019-11-30 23:17:20
I have 2 winforms Form 1 and Form 2. I have button1 in form1, when i click on button1 from form1 i display form2. Form2 ins = new Form2(); ins.MdiParent = this.MdiParent; this.Hide(); ins.ShowDialog(); I hide the form1 to display form2 when button1 is clicked. This creates a flicking effect and i need to remove this flicking. How do i open/redirect to another form (i am supposed to show only one form at a time and am not supposed to show any top menu like (if i use MDIParent form). Just one active form. Thanks, Karthick It sounds a bit like you're trying to create a web-style UI where the user

Delphi - Hidden MDI child form creation

邮差的信 提交于 2019-11-30 21:06:05
My application has many many mdi forms and they are created after successfull user login. How can I best hide this creation process? It looks stupid and it takes longer time while mdi forms are painted after new form is created and so on. So far I have used LockWindowUpdate, which doesn't hide everything, but I would like to use a splash screen showing the creation progress, but I can't with LockWindowUpdate. Best Regards Janne To create MDI child forms invisible you set their Visible property to False , and in addition you have to disable the VCL behaviour of force-showing them during

Problem with icon on creating new maximized MDI child form in .NET

吃可爱长大的小学妹 提交于 2019-11-30 17:33:34
I have a .NET 3.5 MDI WinForms application. I set a a child form's Icon property, and the icon shows up correctly in the top left corner of the form. I then maximize the child form and the icon is still OK. With the child form still maximized , I open another child window, which automatically comes up maximized. This form's icon is not the one in the Icon property, but the default .NET icon (the one with the blue, red, and yellow squares). However, if I resize the MDI parent form, the icon resets itself and displays properly. Does anyone have a workaround or know why this happens? Right I have

Delphi, MDI vs Tabs for multi-document interface

空扰寡人 提交于 2019-11-30 07:25:59
I'm developing a multi-document application. Currently it uses MDI which is quite convenient for me (as a developer) as well as for users I believe. However there is one "against" - I haven't found a solution to quickly load many child windows (each time the window is created and maximized to fill the parent's area, there is an 'animation' of resizing which takes a lot of time) so far, thus I'm considering switching back to tabbed interface (which requires some more work, I need to "embed" a form to the page sheet, as there are many "kinds" of forms available, some for editing text documents,

Delphi - Hidden MDI child form creation

◇◆丶佛笑我妖孽 提交于 2019-11-30 05:38:56
问题 My application has many many mdi forms and they are created after successfull user login. How can I best hide this creation process? It looks stupid and it takes longer time while mdi forms are painted after new form is created and so on. So far I have used LockWindowUpdate, which doesn't hide everything, but I would like to use a splash screen showing the creation progress, but I can't with LockWindowUpdate. Best Regards Janne 回答1: To create MDI child forms invisible you set their Visible

How to avoid visual artifacts when hosting WPF user controls within a WinForms MDI app?

人盡茶涼 提交于 2019-11-30 05:25:31
When hosting WPF user controls within a WinForms MDI app there is a drawing issue when you have multiple forms that overlap each other that causes very distinct visual artifacts. These artifacts are mostly visible after dragging one child form over another one that also hosts WPF content or by allowing the edges of the child form to be clipped by the main MDI parent when dragging it around. After the drag and drop of the child form is completed the artifacts stay around generally but I've found that setting focus to a different application's window and then refocusing back on to my application

Maximize MDI child form

Deadly 提交于 2019-11-30 03:14:59
问题 I'm working on a legacy WinForms MDI application and have some trouble making the child forms behave as I want. My objective is to have the child form always maximized (docked). The problem is, that even if I set MaximizeBox to false the maximize/resize button appears in the MDIs toolstrip and let the user resize (undock) the child form. The only way to avoid this is to set ControlBox to false but then the close button disappears to (thats not what I want). I've already tried to use a fixed

Problem with icon on creating new maximized MDI child form in .NET

久未见 提交于 2019-11-30 01:06:10
问题 I have a .NET 3.5 MDI WinForms application. I set a a child form's Icon property, and the icon shows up correctly in the top left corner of the form. I then maximize the child form and the icon is still OK. With the child form still maximized , I open another child window, which automatically comes up maximized. This form's icon is not the one in the Icon property, but the default .NET icon (the one with the blue, red, and yellow squares). However, if I resize the MDI parent form, the icon