WinForms › Watermark Text Box
Watermark Text Box
.NET Framework 4.8.NET 6 / 8 / 10v3.0.0WinForms
A highly customisable WaterMark TextBox .NET Control for WinForms
4public types
39public members
1namespaces
Assembly
| Assembly | Binarymission.WinForms.Controls.WatermarkTextBox.dll |
| Root namespace | Binarymission.WinForms.Controls.InputControls |
| Target frameworks | .NET Framework 4.8, .NET 6 / 8 / 10 |
Getting started
using Binarymission.WinForms.Controls.InputControls;
// Designer: build the solution once, then drag WatermarkTextBox from the Toolbox onto a form.
// In code:
var watermarkTextBox = new WatermarkTextBox
{
Dock = DockStyle.Fill,
};
this.Controls.Add(watermarkTextBox);
API reference
Binarymission.WinForms.Controls.InputControls
interface IWatermarkProvider | A custom interface that can be implemented by any control that wants to provide watermark fatures so as to to be plugged into Binarymission WatermarkTextBox control for rendering a custom UI inside that control. |
class WatermarkControlProvider | Custom WatermarkControlProvider class that external should inherit from in order to provide a custom implementation for the watermark section of the WatermarkTextBox (watermark text box control). |
class WatermarkProvider | Draws the watermark shown over a control while it is empty, using a label for the watermark text and a picture box for the watermark image. |
class WatermarkTextBox | Class WatermarkTextBox. |