Applications settings get messed up
-
Hi all! New to the forum ;) I have a made a application that stores it's settings with the following code:
Properties.Settings.Default.Username= TxtUsername.Text;
Properties.Settings.Default.Password = TxtPassword.Text;
Properties.Settings.Default.Tel = TxtTel.Text;
Properties.Settings.Default.EMail = TxtEMail.Text;
Properties.Settings.Default.Save();Loading the settings works just fine, but with one exception. If I change the code in any way, the settings changes to "\r\n\t\t\t\t". I can image it is because the application has changed or something like that. But is there any way to make it so it changes to "" instead? Want to make a function to check if the settings have been set by checking each of them if they are null. Dosent work that well if they either are null or contain "\r\n\t\t\t\t". Note that I am using SharpDevelop, I am at work and I can't get VS Studio here, unfortunatly.