Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Make a textbox's text not editable but viewable in runtime

I want to make my textbox display the text "Username" or "Password" but when the user starts typing it in it starts editing that text. I want that text to then disappear.

the image of what Im trying to make

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Are you using Visual Basic or C# for this? Regardless, Visual Studio should have a "PlaceholderText" option under the "Properties" menu on the right-hand side when you click on your text box.

Visual Studio Properties Window

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading