Possible Duplicate:
Watermark TextBox in WinForms
I'm currently programming the settings dialog of a C# application. The input fields should look like that:
 → 
What's the best way to realize that? I've thought of creating a background-image but I would like to know if there's a better way to do that (something dynamically)...
Use a panel with white set as the BackColor.
In the panel control, on the left insert a TextBox with BorderStyle set to None.
In the panel control, on the right insert a Label with BackColor set to Transparent and set Text to "Firstname".

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With