// IMAGES 2 private void btn_Images2_MouseClick(object sender, MouseEventArgs e) { if (running == false) { running = true; var loc_a = System.Reflection.Assembly.GetEntryAssembly().Location.LastIndexOf("\\") + "\\".Length; var loc_b = System.Reflection.Assembly.GetEntryAssembly().Location.Length - loc_a; Backgrounds.Create_Backgrounds(System.Reflection.Assembly.GetEntryAssembly().Location.Remove(loc_a) + @"backgrounds\"); } }