-1

Possible Duplicate:
Watermark TextBox in WinForms
How do I fill an empty textbox with default text?

I wish implement a TextBox item in my winform with a default text, like the search textbox in the web (also like the search in this page, on the top right corner), with a gray text that will be erased and replaced when I start to write, or just when I focus on...

Community
  • 1
  • 1
ghiboz
  • 7,863
  • 21
  • 85
  • 131

1 Answers1

1

Have a look at this library:

http://www.codeproject.com/Articles/18858/Fully-themed-Windows-Vista-Controls (Look at the CueTextBox)

It uses standard Windows API instead of custom drawing. This way yout TextBox will look better on all OS.

bytecode77
  • 14,163
  • 30
  • 110
  • 141