Help regarding password char in textbox
-
hi all, I have set the password char for a textbox as *. and i am able to mask the password. I have a check box which prompts for showing the password. Now how can i unmask the password char so that the password is visible in the textbox? Thanks in advance.:) Regards Anuradha
-
hi all, I have set the password char for a textbox as *. and i am able to mask the password. I have a check box which prompts for showing the password. Now how can i unmask the password char so that the password is visible in the textbox? Thanks in advance.:) Regards Anuradha
-
You can change the textmode property of the textbox to single line again! TextBox1.TextMode="SingleLine"
Gautham
-
hi all, I have set the password char for a textbox as *. and i am able to mask the password. I have a check box which prompts for showing the password. Now how can i unmask the password char so that the password is visible in the textbox? Thanks in advance.:) Regards Anuradha
;) Its just a trick... 1) Have a 2 textboxes which stores the password, one is masked and other unmasked at the same location having the same top,left,height and width. At an instance depending upon the checkbox value, only one textbox is visible if(checkbox checked true) { textboxMasked.Visibility = false; textboxUnmasked.Visibility = true; textboxUnMasked.Text = textboxMasked.Text } else { textboxMasked.Visibility = true; textboxUnmasked.Visibility = false; textboxMasked.Text = textboxunMasked.Text } In the check box unchecked event,do the above Hope this solve ur issue... please reply back if it solved ur requirement
N.Navaneethan
-
hi gautham, Thanks for the immediate response. I am using windows application in C#. There is no textmode property for textbox control in windows application. How to proceed? Thanks once again. Regards Anuradha
-
hi gautham, Thanks for the immediate response. I am using windows application in C#. There is no textmode property for textbox control in windows application. How to proceed? Thanks once again. Regards Anuradha
TextBox.PasswordChar Property The character used to mask characters entered in a single-line TextBox control. Set the value of this property to 0 (character value) if you do not want the control to mask characters as they are typed. Equals 0 (character value) by default.
Gautham