all groups > dotnet windows forms > july 2007 >
You're in the

dotnet windows forms

group:

User Control Localization


User Control Localization JB
7/29/2007 6:14:43 AM
dotnet windows forms:
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 JB
7/29/2007 6:26:10 AM
Never mind, it should just be:

System.ComponentModel.Localizable
Re: User Control Localization Morten Wennevik [C# MVP]
7/29/2007 3:55:55 PM
[quoted text, click to view]

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

--
Happy coding!
AddThis Social Bookmark Button