locked
hide text in the textbox RRS feed

  • Question

  •  hi all,

     im doing one application inSL2.0 with database. while im typing text in the password textbox, it should  display as ***.

    what property should i use for this purpose. 

     

    Advance in thanx 

    Wednesday, March 12, 2008 8:08 AM

Answers

  • hi,

     

    i've fixed tat bug.we can change the strings as "*" using text_change property.The code is below..

     

     void pwd_TextChanged(object sender, TextChangedEventArgs e)
            {
                string p = "";
                int n = pwd.Text.Length;
                for (int i = 0; i < n; i++)

                    p += "*";
                pwd.Text = p;
               
            }

    Saturday, March 15, 2008 6:28 AM

All replies

  • what property should i use for this purpose. 
     

    AFAIK, Password Textbox doesn't currently supported in SL 2.  Yes. It's bad.. :(

    Wednesday, March 12, 2008 10:54 AM
  • hi,

     

    i've fixed tat bug.we can change the strings as "*" using text_change property.The code is below..

     

     void pwd_TextChanged(object sender, TextChangedEventArgs e)
            {
                string p = "";
                int n = pwd.Text.Length;
                for (int i = 0; i < n; i++)

                    p += "*";
                pwd.Text = p;
               
            }

    Saturday, March 15, 2008 6:28 AM