C# .NET WinForms: Setting a placeholder for a TextBox

Useful snippet for adding a placeholder text feature to a common Windows Forms TextBox like you might know it from HTML’s <input> tag. Add e.g. to your ExtensionMethods: C# private const int EM_SETCUEBANNER = 0x1501; [DllImport("user32.dll", CharSet =...
  [email protected]