Questions tagged [mdiparent]

MDI stands for Multiple Document Interface. A MDIParent form can contain several MDIChild forms each of them doing indipendent things, but sharing the same parent container, menus and controls.

A MDIParent is an option to consider in developing an application displaying several documents at once, since it allows users to easily identify what belongs to an application and what is part of another.

220 questions
0
votes
1 answer

Move a child out of panel

I use the code down below to start a cmd.exe window and move it into panel1 on my form. I added button1 to it and I like to use that button to move the child out of panel1, back "to the desktop". Does anybody know how to do that? I did some Googling…
Eric van Loon
  • 103
  • 1
  • 9
0
votes
0 answers

Collection was modified; enumeration operation may not execute. in foreach()

I was using a button to output a form in the MDI parent. The frmUser does not have any code or anything, just a plain new form, and this is the only code I have in this form, and the foreach() is having an error of: InvalidOperationException was…
0
votes
0 answers

WinForms: A control that cannot be used in MDI parent?

During an interview i was asked "a control that cannot be used in a MDI parent Form ?" , i couldn't find much about this on the internet , anybody have a clue ? Thanks
pavan kumar
  • 408
  • 5
  • 19
0
votes
1 answer

winforms MDI has new minimum child size in windows 11?

Supposedly, the default size of all minimized windows is 160x31 but this has been changed in windows 11? Is there yet another registry change or other work around that can revert this back to windows 10 functionality?
Watson
  • 1,385
  • 1
  • 15
  • 36
0
votes
0 answers

vb.net mdi child is hidden behind MDI Parent Panels

I am planning to have a vb.net windows form applocation that has a main mdi ( contains menu strip + panels all over the mdi ) the problems is when a child form is shown , and when minimizing the child form it disappears behind the main mdi. any…
0
votes
3 answers

How can I start a process as a child of a winform in my C# program?

I have a process that was written by WPF and I want to start it in my program. I used "process.start()" and its worked successfully. But now I want to start my process as a child of a form.
M_Mogharrabi
  • 1,369
  • 5
  • 29
  • 57
0
votes
1 answer

Help with Multiple Document Interface(MDI)

I'm new in Visual Studio 2010 and I an creating an application that saves the information of the Company and its Employees. I already created 2 forms. In the first form is the main menu where I put 2 panel in it, the left side has the button for…
sean
  • 9,198
  • 22
  • 65
  • 80
0
votes
0 answers

MDI Child docking issue

I'm using C# Windows Forms. I have an MDI app with a panel anchored to the left side of the MDI form. I'm opening MDI child windows maximized, which works fine. However, I two two separate problems, which are probably linked, which are: When I click…
Mark Roworth
  • 409
  • 2
  • 15
0
votes
1 answer

how to call a public function inside child form in vb.net

i am having a toolstrip in the mdi form which contains save, update delete and clear buttons. the child form is having save , update , delete and clear as public sub routines , and client form will not have any standard buttons, i will click the…
sansknwoledge
  • 4,209
  • 9
  • 38
  • 61
0
votes
0 answers

When parent window is maximized then all child window will be restored at their previous WindowState

I'm using VS 2010, WPF 4, C# I have a parent window and some child windows. When I minimize the parent window all child windows go minimize too. And when I maximize the parent window all child windows go maximize too but I want to restore the child…
Towhid
  • 1,920
  • 3
  • 36
  • 57
0
votes
1 answer

Windows Media Player Problem in mdi child form

i have 2 forms (form1) and (form2), form2 has media player and combobox to choose video this is the code: Public Class Form2 Private Sub ComboBox1_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox1.SelectedIndexChanged If…
GME
  • 156
  • 2
  • 2
  • 16
0
votes
0 answers

How to stop MDIchild forms opening in different locations

I am upgrading a VB 2008 application that uses MDIparent and child(s). Migrating it to VB2017. I am experiencing the following symptom. When I open the first child form (call it form1) it opens where I want it to. But if I open that same form…
Tom
  • 151
  • 1
  • 12
0
votes
0 answers

Wrong MDIChildForm is activated when I close another MDIChildForm

I am working with a Winforms application that uses an MDi layout. Target Framework .Net 4.5.2 Tested with both: CefSharp 71.0.2 and 79.1.360. I am having a problem with MDIihild activation order after I close the active MDiChild. Here is roughly…
aanund
  • 1,483
  • 11
  • 18
0
votes
1 answer

Enable a TButton of an MDI ChildForm upon closing of another MDI ChildForm

I have 2 MDI ChildForms and the Child1 has a TButton to open the Child2. I do not have any issue opening it at the same time disable the TButton to prevent Child2 from recreating again using TButton. Now, the challenge comes when I want the TButton…
Juke
  • 135
  • 2
  • 9
0
votes
1 answer

Where my MDI form is not my startup form, how do I instantiate it?

I have a Windows Forms C# project. I want to show a splash screen (frmSplash) and then open up an MDI parent (mdi). I get a compile time error when I try to create an instance of the MDI form. The following code is in frmSplash in the click event…
Mark Roworth
  • 409
  • 2
  • 15