Question in windows forms :
-
How could i design two windows forms(Parent & child) like in MSword that the maximum size of the child form does not exceed the max size of the parent form and when maxmizing the child form its control cox still appeare below the control box of the parent form ?
-
How could i design two windows forms(Parent & child) like in MSword that the maximum size of the child form does not exceed the max size of the parent form and when maxmizing the child form its control cox still appeare below the control box of the parent form ?
ImanMahmoud wrote: How could i design two windows forms(Parent & child) like in MSword that the maximum size of the child form does not exceed the max size of the parent form and when maxmizing the child form its control cox still appeare below the control box of the parent form? Could it be that you want to create an application with a Multiple Document Interface[^] (MDI)? If so, check out Multiple-Document Interface (MDI) Applications[^] on MSDN. Best regards Dennis
-
How could i design two windows forms(Parent & child) like in MSword that the maximum size of the child form does not exceed the max size of the parent form and when maxmizing the child form its control cox still appeare below the control box of the parent form ?
easy,in the properties inspector for the main form, set the "IsMdiContainer" property to true. then create a new form and call it Form2 (the default value, used for the sake of this example) in the load event of the first form (Form1), paste this code. Form2 Form2 = new Form2(); Form2.MdiParent = this; Form2.Show(); the Form2 now cannot escape the parent, which is an Mdi, or multiple document interface form.