Multiple Forms - please help

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Peter Krikelis

    #1

    Multiple Forms - please help

    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 "IsMDIParen t". 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.IsM diChild' cannot be
    assigned to -- it is read only".

    What am I doing wrong?


  • Tim Mulholland

    #2
    Re: Multiple Forms - please help

    Ran into this same problem myself.

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


    "Peter Krikelis" <pkrikelis@hotm ail.com> wrote in message
    news:0e9601c377 d7$d2d87160$a60 1280a@phx.gbl.. .[color=blue]
    > 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 "IsMDIParen t". 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.IsM diChild' cannot be
    > assigned to -- it is read only".
    >
    > What am I doing wrong?
    >
    >[/color]


    Comment

    • Manish Agarwal

      #3
      Re: Multiple Forms - please help

      See



      -------------------------
      "Manish Agarwal"- <manishkrishan@ hotmail.com>



      *** Sent via Developersdex http://www.developersdex.com ***
      Don't just participate in USENET...get rewarded for it!

      Comment

      Working...