How do I make a textbox transparent?

How to make textbox change text once clicked--c#?

  • i have a username and password textbox. they start off saying username and password in a grey text. what i want to happen is when the user clicks in them the text in them disappears and the user can type in them, however is they are clicked out of before anything is typed the original text reappears. also in the username textbox i want the text in the user types in to be black, and in the password textbox i want the password circles to appear. for an example i want them to work exactly like the email and password textboxes on facebook. thankyou so much for any help on this!!!

  • Answer:

    In the text box properties there is a property call Passwordchar.Set it as *. (Because you cannot add • character there) Just use the following code. private void textBox1_Click(object sender, EventArgs e) { textBox1.Clear(); }

jfree at Yahoo! Answers Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.