Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Applications settings get messed up

Applications settings get messed up

Scheduled Pinned Locked Moved C#
visual-studioquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Acuena
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups