Hi All,
According to the doco the PasswordBox method returns an error if user presses Cancel.
Opens a dialog box containing a prompt and a text box for user input, and returns the contents of the text box after the user clicks OK. The text entered into the text box appears as asterisks on screen. This method returns an error if the user clicks Cancel.
Any ideas as to how to trap the error if the user presses Cancel? I just get a zero-length string returned.
What I am trying to do is determine if the user pressed cancel or entered a blank password and pressed Ok and make a decision on that..
Any ideas appreciated.
Cheers
Steve