User Control Localization

  • Thread starter Thread starter JB
  • Start date Start date
J

JB

I have a user control with a public property, when I try to set the
attirbutes of the property as so:

<Localizable(True)> _
Public Property DisplayText() As String
Get
Return Me.DisplayTextLbl.Text
End Get
Set(ByVal value As String)
Me.DisplayTextLbl.Text = value
End Set
End Property

I get Type Localizable not defined, what am I missing?

Thanks.
 
Never mind, it should just be:

System.ComponentModel.Localizable

Just Localizable is fine provided you add Imports System.ComponentModel ([C#] using System.ComponentModel;)
 
Back
Top