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.

Re: User Control Localization by JB

JB
Sun Jul 29 08:26:10 CDT 2007

Never mind, it should just be:

System.ComponentModel.Localizable


Re: User Control Localization by Morten

Morten
Sun Jul 29 08:55:55 CDT 2007

On Sun, 29 Jul 2007 15:26:10 +0200, JB <josephbyrns@yahoo.com> wrote:

> Never mind, it should just be:
>
> System.ComponentModel.Localizable
>
>

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

--
Happy coding!
Morten Wennevik [C# MVP]