private void CustomLocation_Button_Click(object sender, EventArgs e) { string path = GeneralMethods.BrowseForDirectory("Please choose where to save the project", Environment.CurrentDirectory); this.Focus(); if (!Guard.IsStringValid(path)) { ConsoleHandler.append("You didn't select a valid folder. Please try again, or use let toolbox use the default folder"); MessageBox.Show("You didn't select a valid folder. Please try again, or use let toolbox use the default folder"); return; } customFolder = path; }