Multiple Forms - please help

  • Thread starter Thread starter Peter Krikelis
  • Start date Start date
P

Peter Krikelis

Hi,

I am a new C# programmer and I am trying to create a
project which has a parent MDI form. Then I want to be
able to open other forms using some buttons or menu items
on the parent MDI form.

I opened new Windows Application and set the first form
(System.Windows.Forms.Form) to the "IsMDIParent". Then I
added another Windows form and I am trying to set its
property to the IsMdiChild and it will give an
error: "Property or
indexer 'System.Windows.Forms.Form.IsMdiChild' cannot be
assigned to -- it is read only".

What am I doing wrong?
 
Ran into this same problem myself.

Try setting the MdiParent property of the child form when you create the
instance of it.
 
Back
Top