How to set a text box for inputing password in winforms?

后端 未结 8 1156
伪装坚强ぢ
伪装坚强ぢ 2020-12-01 13:27

how to set a text box for inputing password in winforms? Also I want to show \"Capslock is ON\" popup if capslock is on.

I want something like

相关标签:
8条回答
  • 2020-12-01 14:23

    To make PasswordChar use the ● character instead:

    passwordTextBox.PasswordChar = '\u25CF';

    0 讨论(0)
  • 2020-12-01 14:23

    I know the perfect answer:

    1. double click on The password TextBox.
    2. write your textbox name like textbox2.
    3. write PasswordChar = '*';.
    4. I prefer going to windows character map and find a perfect hide like ●.

      example:TextBox2.PasswordChar = '●';
      
    0 讨论(0)
提交回复
热议问题