User Control Localization

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.
 
M

Morten Wennevik [C# MVP]

Never mind, it should just be:

System.ComponentModel.Localizable

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top