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

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

    you can use like these "txtpassword.PasswordChar = '•';"

    the use location is ...

     namespace Library_Management_System
        {
            public partial class Login : Form
            {
                public Login()
                {
                    InitializeComponent();
                    txtpassword.PasswordChar = '•';
    

提交回复
热议问题