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

BannerTextProvider not setting in code.

I've been trying to use the BannerTextProvider with multiple TextBoxExt controls. I can set them in the VS Designer but not within code. I've tried the following code snippets without success. (Using VB.NET 2008 Pro)

Dim bannerText As String = "This is a test"

Dim info As Syncfusion.Windows.Forms.BannerTextInfo = bannerTextProvider1.GetBannerText(Me.txtSampleName1)

info.Text = bannerText

'Also tried this ...

Dim info As New Syncfusion.Windows.Forms.BannerTextInfo
info.Text = bannerText
info.Visible = True
info.Color = Color.LightGray
info.Mode = BannerTextMode.FocusMode
info.Font = New Font("Tahoma", 8.0F, FontStyle.Regular)

Me.bannerTextProvider1.SetBannerText(Me.txtSampleName1, info)





3 Replies

RB Roland Brooks March 30, 2011 08:26 PM UTC

I figured out a solution. I first had to set the banner text to an empty string, then set it to the desired string.



RB Roland Brooks March 30, 2011 08:26 PM UTC

I figured out a solution. I first had to set the banner text to an empty string, then set it to the desired string.



IM Iniyen M A Syncfusion Team April 1, 2011 08:37 AM UTC

Hi Roland,

Thanks for your interest in Syncfusion products.

We are glad to hear that you have your problems resolved.

Please let us know if you need any assistance.

Regards,
Iniyen M.A.



Loader.
Live Chat Icon For mobile
Up arrow icon