I am trying to find examples or a method to insert watermarks in textboxes. I am using VS2015 and that option isnt there and the code from earlier version 2012, 2010, etc.. doesnt seem to work.
Thanks,
Richard
Printable View
I am trying to find examples or a method to insert watermarks in textboxes. I am using VS2015 and that option isnt there and the code from earlier version 2012, 2010, etc.. doesnt seem to work.
Thanks,
Richard
There's no reason that code that works in recent earlier versions should not work. WinForms TextBoxes haven't changed in that time. Show us what you're using and provide any other relevant information, e.g. error messages.
If you want text to display when there is nothing in a text box then check out the following where when there is no information in the text box the "watermark" or as it's commonly known as "CUEBANNER" the "watermark" is not
shown.
VS2015 solution with both VB.NET and C# code samples.