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
0
votes
1 answer

Save MdiChildren on Application exit

I would like to store some data about open MdiChildren to restore them when the application restarts. But the MdiChildren property seems to empty on the ApplicationExit event. Which event do I listen to to be able to get a list of open MdiChildren…
nunespascal
  • 17,584
  • 2
  • 43
  • 46
0
votes
1 answer

Two MDI child forms interfering with each other

I am writing an MDI application in C# that contains two child forms which are referenced through DLL (stand alone projects added to references). One child form (call it form1) is performing animation based on graphic objects using a timer. This…
0
votes
1 answer

MDI Implementation in WPF

How can I implement an MDI application in WPF? In windows forms I was used to write code like this: Form2 oForm2 = new Form2(); oForm2.MdiParent = this; oForm2.Show(); How can I accomplish the same thing in WPF?
alexandrovdi
  • 191
  • 1
  • 3
  • 10
0
votes
2 answers

how to call MdiChild from MDIParent form

I create a new MdiChild from MainForm using this method: AdminLogInForm adminForm; private void LogInAsAdminMenuItem_Click(object sender, EventArgs e) { if (adminForm == null) { adminForm = new AdminLogInForm(); …
Bublik
  • 912
  • 5
  • 15
  • 30
0
votes
1 answer

OutOfMemoryException in MDIChild

I have a datagridview in MDIChild form, which I ll customize on form load by calling the following function, private void FillDetails() { dgvDefCofig.DataSource = dbLayer.tblDefConfigSelectAll().Tables[0]; var columnheaderstyle =…
Olivarsham
  • 1,701
  • 5
  • 25
  • 51
-1
votes
2 answers

snap to grid MDI child forms vb.net

I'm developping a modular dashboard in Visual Basic that starts as an empty container than i can add modules to populate it. The parent form is an MDI container and every module is a child MDI form that have fixed size. I'd like to snap all of that…
mferre
  • 182
  • 1
  • 14
-1
votes
1 answer

Show MDIChild Form from another MDIChild Form

Let’s I have MDIParentForm (Home), Child Form (Form1, Form2), Home has one Menu (Add) and Form1 has button (btnOk) '''''Here is C# Code'''''' public partial class Home : DevExpress.XtraBars.Ribbon.RibbonForm { public Home() { …
-1
votes
1 answer

Error on opening an MDI ChildForm from another MDI ChildForm's TButton via TMenuItem on MDI ParentForm

I have 2 MDIChild Forms and an MDIParent Form with a TMainMenu. In the TMainMenu, I have the following TMenuItem.OnClick procedure to open ChildForm2: procedure TfrmMain.miOpenChildForm2Click(Sender: TObject); begin …
Juke
  • 135
  • 2
  • 9
-1
votes
1 answer

How to close MDIChild C# VS2010?

Actually Its my first project. While I want to convert my VB.Net2008 to C#2010 I have few clarification pls. In Form2 Properties I set - IsMDIContainer = True. Then the below code to open my MdiChild and now what is my problem when I click the…
Paramu
  • 613
  • 2
  • 10
  • 23
-1
votes
1 answer

MDIChild Form always behind ScrollBox

Based in this my working code, now i need of a ScrollBox component and a Image component inside he. Eg: The problem now is the ScrollBox. The MDIChild Form always stays behind, you can test, changing ScrollBox Align (None/Client) property. Then…
FLASHCODER
  • 1
  • 7
  • 24
-1
votes
1 answer

Allow multiple MDI Parent Forms on same Application

I'm trying follow what was suggested in this answer, changing this part of Vcl.Forms.pas: procedure TCustomForm.CreateWindowHandle(const Params: TCreateParams); var CreateStruct: TMDICreateStruct; NewParams: TCreateParams; begin if (FormStyle…
FLASHCODER
  • 1
  • 7
  • 24
-1
votes
1 answer

MDIChild form cannot be created

Have a main form (Form1) where is created a MDIForm (Form2) and a MDIChild (Form3) form respectivelly in execution time. In my tests the MDIForm (Form2) is show like expected but when try show the MDIChild (Form3) i get the following error that…
FLASHCODER
  • 1
  • 7
  • 24
-1
votes
1 answer

c# Creating MDI Child of Form1 from Form2

I am attempting to instantiate an instance of From3 as a child of Form1 by clicking a button on Form2. However, when using the following code in Form2: Form3 PFForm = new Form3(); PFForm.MdiParent = Form1; PFForm.Show(); ... to instantiate Form3…
Trip Ives
  • 71
  • 7
-1
votes
1 answer

MDI Parent Not Keeping Form In Client Area

i am trying to create a MDI applications with winforms, the form design is borderless and i have a mainmenu strip, when i maximize the child it appears to be out of the client area, it blocks the main menustrip, and the scroll bars do not…
waynemodz
  • 118
  • 9
-1
votes
1 answer

Ctrl-C / Ctrl-V not working in VB6

i have a project in VB6. This project have a MDI form and many childs. My problem is Ctrl-C and Ctrl-V not working. But Copy / Paste with mouse run fine. There is some configuration of the project to enable these functions? I have another similar…
Karlos Garcia
  • 174
  • 3
  • 16
1 2 3
20
21