Watermark / hint text / placeholder TextBox

后端 未结 30 2552
遇见更好的自我
遇见更好的自我 2020-11-22 02:20

How can I put some text into a TextBox which is removed automatically when user types something in it?

30条回答
  •  醉酒成梦
    2020-11-22 02:46

    Simple solution using style:

    
        
            
        
    
    

    Great solution:

    https://code.msdn.microsoft.com/windowsdesktop/In-place-hit-messages-for-18db3a6c

提交回复
热议问题