public static void SetFolderPath() { //create properties object (to access properties) props.Settings mySavedProperties = new props.Settings(); //props.Settings.Default.Save(); //props.Settings.Default.Reload(); //props.Settings.Default.Reset(); //mySavedProperties.Properties. }
//DEFAULT SETTINGS FOR LABELS (File name and path) public static void SettingsInit(Label lblPath, Label lblName) { //create properties object (to access properties) props.Settings mySavedProperties = new props.Settings(); props.Settings.Default.Save(); //mySavedProperties.DefaultFilePath = "zzzzzzzz"; //props.Settings.Default.DefaultFileName = "yyyyyyyyyy"; //props.Settings.Default.DefaultFilePath = "azzzzzzzzzzzzzPath"; //props.Settings.Default.DefaultFileName = "yyyyyyyyyyFileName"; //mySavedProperties.Save(); //update labels lblPath.Text = mySavedProperties.testFilePath2; lblName.Text = mySavedProperties.testFileName2; //SetFolderPath("DefaultFilePath", "zzzzzz"); }