How to use DevExpress WinForms TextEdit as a password (with asterisks)?

According to http://www.devexpress.com/Products/NET/Controls/WinForms/Editors/editors/textEdit.xml, you can use the Express Express TextEdit control to enter a password and hide characters. Can someone explain to me how to do this? It seems like it should be very simple.

+3
source share
3 answers

Use the RepositoryItemTextEdit.PasswordChar Property

TextEdit has a property Properties.PasswordCharthat is empty by default. By> setting char there (for example, *), you enable the necessary functions.

. :

  • UseSystemPasswordChar true. :

  • PasswordChar any valid character. .

    , PasswordChar "*", , .

. PasswordChar , RepositoryItemMemoEdit.UseSystemPasswordChar true.

:

 TextEdit.Properties.PasswordChar = '*'

"", Properties, PasswordChar, . *.

+10

PasswordChar TextBox , .

:

textBox.PasswordChar = '*';
+1

TextBox, TextBox. UseSystemPasswordChar true. TextBox , CapsLock , Windows.

0

All Articles