private void AlertFormControl_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.F12 && !string.IsNullOrWhiteSpace(ExceptionDetail)) { SweetAlerts.ShowInfo(this, "Exception Detail", ExceptionDetail); } }