- Notifications
You must be signed in to change notification settings - Fork 1
PasswordDialogBox
Alexey Nesterov edited this page Nov 1, 2019
·
2 revisions
The password dialog box is a window with a question icon in the header and body of the message and a password input field.
Default window title is "Enter password". How to change it, you can read here
In the simple case, it is enough
stringpassword=null;PasswordDialogBoxdialogBox=newPasswordDialogBox("Enter password");MessageBoxResultresult=dialogBox.OkButton();if(result==MessageBoxResult.OK){password=dialogBox.Password;}This code will display a password dialog box with an OK button and "Enter password" message.
The entered password will be assigned to the password variable after clicking the Ok button