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?
Don't place your own code in the designer file, instead use a separate file leveraging the partial classes concept.