Results 1 to 3 of 3

Thread: Watermarks in texboxes

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Apr 2017
    Posts
    22

    Watermarks in texboxes

    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

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,274

    Re: Watermarks in texboxes

    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.

  3. #3
    Karen Payne MVP kareninstructor's Avatar
    Join Date
    Jun 2008
    Location
    Oregon
    Posts
    6,684

    Re: Watermarks in texboxes

    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.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width