Click here to Skip to main content
15,904,023 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
how to re-activate disposed files
Posted

If it's disposed then the object no longer exists, so you need to create a new object. There should be no problem with creating it based on a file that you have previously used, as long as the previous one was closed correctly before or during disposal.
 
Share this answer
 
Comments
Ragi Gopi 4-Jun-11 6:27am    
@Richard MacCutchan

can u plz say the method for that
Richard MacCutchan 4-Jun-11 6:38am    
Method for what? If you have previously used a file then you know how to do it. Look at this link
Ragi Gopi 4-Jun-11 6:42am    
method for activating disposed form in run time.
Richard MacCutchan 4-Jun-11 6:47am    
You asked about 'disposed files'; which is it to be? In either case the issue is the same, once an object has been disposed then it no longer exists, so you need to re-create it from the beginning. Maybe you should not be disposing in the first place.
Sergey Alexandrovich Kryukov 5-Jun-11 1:38am    
That is correct, my 5. I mean comment, not solution. This is not your fault that OP does not see the difference between file, form, etc.
I also answered.
This is hopeless, though, so I don't want to go into further detail.
--SA
You asked about file, but later explain that this is about form. In brief: you cannot re-activate disposed form. Do not disposed it, that's it. In general MDI UI is not recommended.

—SA
 
Share this answer
 
Hope this[^] might help you.
 
Share this answer
 

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