C# Cannot implicitly convert type 'string' to 'char' PasswordChar -


i making application required simple 10 digit password into. c#. anyways, using "passwordchar" method create password, errored saying "cannot implicitly convert type 'string' 'char'". main lines of code where:

public form1()     {         initializecomponent();         textbox1.passwordchar="1234567890";         textbox1.maxlength = 10;      } 

can provide fix? in advance.

passwordchar property want each character displayed as.

e.g. if user types abc123 , textbox1.passwordchar = '*' displayed user ******. if set textbox1.passwordchar = '$' displayed user $$$$$$

passwordchar takes char (a single character) not stringwhich made of array of cahracters.

in case want accessing textbox1.text property , set password user typed in.


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -