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
Related Q & A:
- How do I change text font & color default?Best solution by Yahoo! Answers
- How to make change in a team?Best solution by Yahoo! Answers
- How to Change Text in New My Yahoo?Best solution by Yahoo! Answers
- How do you change text color on facebook?Best solution by Quora
- How to make a picture the fill of text?Best solution by Quora
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
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.