We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to provide water mark text appearance using BannerTextProvider?

Platform: WinForms |
Control: BannerTextProvider

This following step guide to implement Water mark support using BannerTextProvider.


1)Drag and drop the BannerTextProvider to the form.


    BannerTextProvider in Toolbox

     Figure 1. BannerText Provider in ToolBox.


2)The controls loaded in the form will get a BannerTextProvider properties as shown in below.


     BannerTextProvider property in ComboBoxAdv

       Figure 2. BannerText Provider Properties in ComboBoxAdv.


The following code example demonstrates the same.


//BannerTextProvider for TextBoxExt
Syncfusion.Windows.Forms.BannerTextInfo bannerTextInfo1 = new Syncfusion.Windows.Forms.BannerTextInfo();
bannerTextInfo1.Mode = Syncfusion.Windows.Forms.BannerTextMode.EditMode;
bannerTextInfo1.Text = "Enter text here";
bannerTextInfo1.Visible = true;
//Associate the BannerTextProvider with TextBoxExt.
this.bannerTextProvider1.SetBannerText(this.textBoxExt1, bannerTextInfo1);
// BannerTextProvider for ComboBoxAdv
Syncfusion.Windows.Forms.BannerTextInfo bannerTextInfo2 = new Syncfusion.Windows.Forms.BannerTextInfo();
bannerTextInfo2.Mode = Syncfusion.Windows.Forms.BannerTextMode.EditMode;
bannerTextInfo2.Text = "Choose any item";
bannerTextInfo2.Visible = true;
//Associate the BannerTextProvider with ComboBoxAdv.
this.bannerTextProvider1.SetBannerText(this.comboBoxAdv1, bannerTextInfo2);



'BannerTextProvider for TextBoxExt.
Dim bannerTextInfo1 As New Syncfusion.Windows.Forms.BannerTextInfo()
bannerTextInfo1.Mode = Syncfusion.Windows.Forms.BannerTextMode.EditMode
bannerTextInfo1.Text = "Enter text here"
bannerTextInfo1.Visible = True
'Associate the BannerTextProvider with TextBoxExt.
Me.bannerTextProvider1.SetBannerText(Me.textBoxExt1, bannerTextInfo1)
' BannerTextProvider for ComboBoxAdv.
Dim bannerTextInfo2 As New Syncfusion.Windows.Forms.BannerTextInfo()
bannerTextInfo2.Mode = Syncfusion.Windows.Forms.BannerTextMode.EditMode
bannerTextInfo2.Text = "Choose any item"
bannerTextInfo2.Visible = True
'Associate the BannerTextProvider with ComboBoxAdv.
Me.bannerTextProvider1.SetBannerText(Me.comboBoxAdv1, bannerTextInfo2)


BannerTextProvider shows in TextBoxExt

 Figure 1. BannerTextProvider shows in TextBoxExt.

BannerTextProvider shows in ComboBoxAdv

Figure 2. BannerTextProvider shows in ComboBoxAdv.

Sample Links:

C#: BannerTextProvider_C#

VB: BannerTextProvider_VB

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile