Question:
I have the following code in my script:
-------------------------------------------------------------------
If gStrAccount <> txtAccount.Text Then
If MsgBox(Application.Translator.Localize("You have changed the account name from ") & chr(34) & gStrAccount & chr(34) & Application.Translator.Localize(" to ") & chr(34) & txtAccount.Text & chr(34) & vbCRLF & vbCRLF & _
Application.Translator.Localize("Are you sure you want to change the acccount name?"), vbYesNo + vbExclamation + vbDefaultButton2, Application.Translator.Localize("Warning")) = vbNO Then
txtAccount.Text = gStrAccount
Else
gStrAccount = txtAccount.Text
End If
End If
------------------------------------------------------------------------------------------
We have found that users are too eager to simply click Enter repeatedly until the messages go away and end up making the changes when they shouldnt have. Is there any way to stop the message box from setting focus in the Yes button (or the No button) so the user has to conciously needs to click a choice????