Every time that I change a value in the designer after saving it, the .designer.cs file will be deleted.
Can anyone tell me how can I fix this problem?
The *.designer.cs files are completely generated by designer. You should not write any your own code into this file. The classes and/or methods are partial, so you can extend/change the behaviour in the separate file.