2X faster development
The ultimate WinForms UI toolkit to boost your development speed.
This following step guide to implement Water mark support using BannerTextProvider.
1)Drag and drop the BannerTextProvider to the form.
Figure 1. BannerText Provider in ToolBox.
2)The controls loaded in the form will get a BannerTextProvider properties as shown in below.
Figure 2. BannerText Provider Properties in ComboBoxAdv.
The following code example demonstrates the same. C# //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);
VB '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)
Figure 1. BannerTextProvider shows in TextBoxExt. Figure 2. BannerTextProvider shows in ComboBoxAdv. Sample Links: |
2X faster development
The ultimate WinForms UI toolkit to boost your development speed.
This page will automatically be redirected to the sign-in page in 10 seconds.