Click here to Skip to main content
15,895,746 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Today when i am doing some changes in window form application in c#, during this time light is gone suddenly and system shutdown, when i restart my computer then compile my program , i am facing following errors

Severity Code Description Project File Line Suppression State

Error CS1056 Unexpected character '

Error CS1061 'Chat' does not contain a definition for 'start_Click' and no extension method 'start_Click' accepting a first argument of type 'Chat' could be found (are you missing a using directive or an assembly reference?)

Meet Google Drive – One place for all your files[^]

What I have tried:

I am changing in chat window form, when restart system class of chat window form is missing, other window form classes are exists, see in image for detail
Posted
Comments
Sascha Lefèvre 14-Feb-16 10:03am    
Please don't repost.

http://www.codeproject.com/Questions/1078565/Window-form-application-in-csharp-compile-time-err
[no name] 14-Feb-16 10:03am    
Sh*t like this happens from time to time. Maybe you should check your .cs with a hex Editor. Even hard to believe that VS stumbles about a Thing like this, I only know that for legacy development environments (non unicode) like bcb6 do have such kind of problems.
Sascha Lefèvre 14-Feb-16 10:15am    
He had a power failure leading to a corrupted file - how is VS or a hex editor going to help with that? :)
[no name] 14-Feb-16 10:21am    
Hex Editor: Recognizing and Correcting the "crashed" part of the file. I had to do this several time... not with VS but with Borland :) And BTW not because of a power fail. Borland was/is(?) able to do this by "default" :-)
Member 12131277 14-Feb-16 10:25am    
how to use it? how it fix it?

1 solution

Start here to get information how to solve your issue:
Compiler Error CS1056[^]
Compiler Error CS1061[^]
 
Share this answer
 
Comments
Sascha Lefèvre 14-Feb-16 10:10am    
In case of a corrupted file the compiler error explanations don't help much..
Maciej Los 14-Feb-16 10:26am    
Sascha, the error message is quite obvious. This does not mean file is corrupted.
Member 12131277 14-Feb-16 10:34am    
ok.how to open this file?
Sascha Lefèvre 14-Feb-16 10:44am    
Maciej, please re-read his first paragraph of the question. The file is corrupted.
Richard MacCutchan 14-Feb-16 11:34am    
How do you know that? The only information we have is that there is something wrong with his source, and it may be a simple typo.

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