C# how do i make it so when i type there are just stars -
this question has answer here:
- password masking console application 13 answers
i'm using program made myself, it's program requires password open w/e application i've assigned too. don't know how make text * instead of regular text. it's console program.
//read here private void form1_load(object sender, eventargs e) { //changes whatever type textbox asterisk textbox1.passwordchar = '*'; } private void textbox1_textchanged(object sender, eventargs e) { //ignore method } private void button1_click(object sender, eventargs e) { //just validate text want string text = textbox1.text; messagebox.show(text); }
Comments
Post a Comment