Click here to Skip to main content
15,894,176 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Friends

i want to use text box as password box control in WPF. we have password box control separately but i need it in same text box control itself.But i need to use text property.Means TextBox.TextProperty. please help me out.

Thanks & Regards
Monish K.M
Posted
Updated 3-Aug-12 20:17pm
v2

Hi,
Try this:
To get or set the Password in a PasswordBox, use the Password property. Such as
C#
string password = PasswordBox.Password;


Or this[^].


--Amit
 
Share this answer
 
WPF gives separate control for password as PaswordBox use that control

See documentation of this control

http://msdn.microsoft.com/en-us/library/system.windows.controls.passwordbox.aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900