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
1
vote
3 answers

Access form control from other form

I got the following method in my MDIparent1 public void Disablebutton() { toolStripButton1.Enabled = false; } In my LoginForm OKButton click MDIParent1 f1 = new MDIParent1(); f1.Disablebutton(); this.Close(); The LoginForm is Modal of…
Karlx Swanovski
  • 2,869
  • 9
  • 34
  • 67
1
vote
4 answers

How I open a form at a time under MDI parent form?

I have a MDI form. Within this MDI there is multiple button to open new forms. Let buttons are btn1, btn2, btn3, btn4.... When I press btn1, form1 is load. when I press btn2, form2 is load... Now I press btn1, And form1 is loaded. If I press again…
Animesh Ghosh
  • 331
  • 8
  • 16
  • 28
1
vote
1 answer

Acessing MDIChild form function through MDIParent form element

I have a MDIChild form ,Normal Form called form1 inherited from MDIChild form and MDIParent form ,there is a tool bar top of the MDIParent form in that tool bar there is a New button, when I click on new button it loads the Form1 below the tool bar…
Roshan
  • 3,236
  • 10
  • 41
  • 63
1
vote
2 answers

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…
Shady
  • 76
  • 1
  • 8
1
vote
2 answers

Adjust child form's public variable from MDI parent form in VB.NET

I have an MDI parent form that may open a child form called "Order". Order forms have a button that allows the user to print the order. The Order form has a print size variable defined at the beginning: Public Class Order Public psize As String …
user961627
  • 12,379
  • 42
  • 136
  • 210
1
vote
1 answer

MDI Parent Child Form location problems

I know using the follwing two methods for showing a form in another form method1 public Form1() { InitializeComponent(); Form2 embeddedForm = new Form2(); embeddedForm.TopLevel = false; Controls.Add(embeddedForm); …
Moon
  • 19,518
  • 56
  • 138
  • 200
1
vote
2 answers

Set Wpf parent to a MDIform

I have a win form application with a MDI Form. for some reason i used a WPF Window in my application. so i want to ask how can i set WPF window parent to my MDI Form?
KF2
  • 9,887
  • 8
  • 44
  • 77
1
vote
2 answers

enable and disable menu items of mdiparent from loginform in c#

i have two form,home and login.On home there is menu called file and menu items like login,logout when i run the application login form will open and after login home page will open.menuitems on home form will enabled=true when login is…
user1482953
  • 181
  • 2
  • 2
  • 9
0
votes
1 answer

Can't see new mdi child

hello i am working on a small uni project. nad the problem is that when i click on a button it has to show a child form in a MDI Container. but that isnt working. all the properties are set right. the mdi container itself contains a splitcontainer…
gakker
  • 13
  • 1
  • 4
0
votes
2 answers

ShowDialog with MdiParent Issue VB:NET

Actually i'm trying to show and dialog into a parent form, An reference example is: Parent Parent_child dialog Main_form new_invoice new_invoicedialog I Tryed this code But it says: Private Sub invoice_new_KeyUp(ByVal sender As…
John Nuñez
  • 1,780
  • 13
  • 35
  • 51
0
votes
1 answer

Form_Load event in MdiParent

i have an MDIParent and a Menustrip so when i click on a StripMenuitem shows me another form inside my MdiParent Form, so my problem is : the Form_Load Event for the form which is opened inside the MdiParent wont work !,it seems like i have to use…
Obama
  • 2,586
  • 2
  • 30
  • 49
0
votes
4 answers

MDI Child Forms C#

How do you check for a close event for an MDI child form when clicking the "X" button and let the parent form know that it has closed?
NexAddo
  • 752
  • 1
  • 18
  • 37
0
votes
1 answer

How to read the parent form datagrid into child form

How to read the parent form datagrid into child form. In the Parent Form Datagrid and read into Child form. Anybody can help me?
user990897
  • 177
  • 2
  • 6
  • 21
0
votes
0 answers

How to add a MDI Child from another MDI Child using vb.net

I need Some help in this case. I have 3 Form (Main Form , Form1 , Form 2) Main Form That is The Parent Form (ISCONTAINER = true) Form 1 Is child for Main Form And In the same time Parent for Form2 Form 2 Is child for Form 1. This pic that I need to…
0
votes
1 answer

How to open an external App as MDIChild or Modal Dialog in my App as if it is another form of my App

My company has a huge with-delphi-written 3-Million-line-code mostly-database-related Application, and we are responsible to support this program. This Application has a MainForm as fsMDIForm and other forms are fsMDIChild which are created…