kcoffrin
10 years agoContributor
MessageDLG: Capture On Click Event
I have created a simple login Userform with some basic validation on the username and password fields(using hardcoded values for the time being). If the LOGIN button is pressed on the screen and an invalid username or password is entered, a MessageDLG will appear, letting the user know.
Right now, if OK is pressed on the window, the test ends. I would like to capture the On Click event for the OK button on the MessageDLG to go back to the login page for the user to try again instead of ending the test. I cannot however figure out the method to accomplish this.
Does anyone have any suggestions?