0

I'm having a textbox in WinForms C#. I have a textbox with some background text. But bringing cursor to the textbox is removing the text. Any ways to have them both at a time?

Similar to firefox search bar. Where we have the cursor and also, 'Search with Google or enter address'

Unknown
  • 7
  • 3
  • Kindly read [How do I ask a good question?](https://stackoverflow.com/help/how-to-ask) and [How to create a Minimal, Reproducible Example](https://stackoverflow.com/help/minimal-reproducible-example) and modify your question. – Kuro Neko May 26 '22 at 07:57
  • Yes, you can, but not using the `PlaceholderText` property (if that's what you're doing). You need to send the `EM_SETCUEBANNER` message to the TextBox, with `wParam` set to `1` (`lParam` is the textual cue). – Jimi May 26 '22 at 09:59

0 Answers0