Click here to Skip to main content
15,902,918 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi Sir,

This is Tarun Kumar.

Actually I have created a module in user control.

That user control I have done drag &drop to form.

I wrote all the code for that control.For print button I have taken crystal reports.

Suddenly power was gone at that time.After restarting it is showing error "There is no editor

available for Mycontrol.cs".

Would you please resolve this error and give me suggestions to resolve this error.
Posted
Updated 13-Jul-14 23:09pm

Check your Visual Studio settings. If necessary re-install it.
 
Share this answer
 
Comments
TarunKumarSusarapu 14-Jul-14 5:21am    
I Have tried all these methods.But It is always showing same error.
What you could do is open project directory and then open the Mycontrol.cs file with notepad containing your code, copy your code then remove Mycontrol.cs class from your project recreate it and then copy your code back in to the new Mycontrol..cs file.
 
Share this answer
 
Comments
TarunKumarSusarapu 14-Jul-14 5:24am    
I tried that also.But it is showing empty code in the notepad.What should I do to resolve this error.
1.what you can you do is you can get temporary files for that particalr project and check if you can recover your code from there.





http://stackoverflow.com/questions/897956/recovering-file-from-the-visual-studio-document-cache[^]


2. Second thing u can do is if you can recovery upto your last build point my using Reflector tool.

http://www.red-gate.com/products/dotnet-development/reflector/[^]
 
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