private void AddUserForm_FormClosing(object sender, FormClosingEventArgs e) { if (should_record == false) { Microphone.PerformClick(); string path = $"{Path.GetDirectoryName(Application.ExecutablePath)}\\Waves\\{user}.wav"; File.Delete(path); } }