saving settings question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • AMP

    saving settings question

    Hello,
    I have a Settings.settin gs file in my project where I put a
    name=FileforUpl oad, type=string and Scope as user. the Value is a path
    to a file

    In my code I have.
    Properties.Sett ings.Default["FileforUpl oad"] = UploadedFileNam e;
    UploadedFileNam e gets its name from a opendialog box so we can save the
    last path.

    This code does not save anything.

    I also have a Settings.design er.cs tha has the following:
    public static Settings Default {
    get {
    return defaultInstance ;
    ........
    .........
    }
    public string FileforUpload {
    get {
    return ((string)(this["FileforUpl oad"]));
    }
    set {
    this["FileforUpl oad"] = value;
    }

    But when I step through it it never runs the "set" when I try to change
    it to the value of UploadedFileNam e.

    Help
    Thanks
    Mike.

Working...