c# - Form that was specified to be the MdiParent for this form is not an MdiContainer -


i working on inventory software , came know need main form through should open other forms, created 1 named frmmainpanel , use menu strip link successful in linking them opening outside main form, use following code link them

linking frmsaleinvoice form using:

frmsaleinvoice childform = new frmsaleinvoice(); cs.show() 

now realize should make them child main form tried using following code:

frmsaleinvoice childform = new frmsaleinvoice();  childform.mdiparent = this; childform.show(); 

but says **" form specified mdiparent form not mdicontainer."**

can 1 me out wher mistaking , how make form named frmsaleinvoice child of other form named frmmainpanel

the mdi parent must have it's ismdicontainer property set true. can set property @ design time in frmmainpanel form.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -