How to display masked character on input text box?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bruce wane
    New Member
    • Nov 2010
    • 4

    How to display masked character on input text box?

    I'm creating a window application that let user enter their password inside a text box. I am trying to figure out the coding when the user is entering his or her password inside the text box, the text box has to masked some sort of character on the text box so the user cannot see his/her password on the screen.

    For example If I type in lucifer as my password it would came out in the text box as ( [xxxxxxx])
    Last edited by Niheel; Nov 14 '10, 08:16 PM. Reason: Please use proper grammar and spelling in the future.
  • bruce wane
    New Member
    • Nov 2010
    • 4

    #2
    ok! i'm trying to figure out the coding for masked coding inside a text box can anyone help me with this?

    Comment

    • Subin Ninan
      New Member
      • Sep 2010
      • 91

      #3
      Set PasswordChar property of textbox to "*".
      Last edited by Subin Ninan; Nov 15 '10, 04:50 AM. Reason: Error

      Comment

      • bruce wane
        New Member
        • Nov 2010
        • 4

        #4
        oh ok ! thanks subin ninan....didn't know what it was suppose to do

        Comment

        • bruce wane
          New Member
          • Nov 2010
          • 4

          #5
          hey how can i get text box to accept several Unicode character instead of one?

          for example :
          passwordAmt = Char.Parse(inVa lue);

          (are there any other way than this )

          Comment

          Working...