Click here to Skip to main content
15,879,535 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Creating MDI application using C#

Creating MDI application using C# (Walkthrough)[^]

when i tried this codes....

An error " Cannot access a disposed object. Object name: 'frmSChild...:"

This happens when i select "new single" from "File" menu Second time..
Can any one help please....

[edit]Link converted to actual link - OriginalGriff[/edit]
Posted
Updated 3-Jun-11 21:40pm
v4
Comments
ambarishtv 4-Jun-11 3:14am    
suggestion : http://www.codeproject.com/Answers/194413/opening-a-form-inside-a-form#answer1

Ensure that you are not disposing off the frmSChild form via your code.
 
Share this answer
 
At a guess, you didn't follow the instructions in the article correctly.

Don't post this under Questions & Answers - if you got the code from an article, then there is a "new message" button at the bottom of that article, which causes an email to be sent to the author. They are then alerted that you wish to speak to them.
Posting this here relies on them "dropping by" and realising it is for them.
 
Share this answer
 
see this link.....

Creating MDI application using C#[^]
 
Share this answer
 
Comments
Ragi Gopi 4-Jun-11 4:47am    
@parmar_punit@yahoo.co.in

but its not working.....
an error "Cannot access a disposed object. Object name: 'frmSChild..."
is generated
This happens when i select "new single" from "File" menu Second time..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900