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

后端 未结 8 1195
伪装坚强ぢ
伪装坚强ぢ 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

    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 = '●';
      

提交回复
热议问题