Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
C# Helper...
 
XML RSS Feed
Follow VBHelper on Twitter
 
 
 
MSDN Visual Basic Community
 
 
 
 
 
 
TitleUse the Localizable attribute in VB .NET
DescriptionThis example shows how to use the Localizable attribute in VB .NET.
KeywordsLocalizable, LocalizableAttribute, attribute, VB.NET, property
CategoriesVB.NET
 
The Localizable attribute indicates whether a poroperty should be localizable. If this is True, then localized values are automatically stored in the appropriate resource files. The default is False.

In this example, the Employee class's FirstName property is localizable but its LastName property is not. If you localize the application, separate values are stored for FirstName in the different language resource files but only one value is stored for LastName.

 
Public Class Employee
    ...
    <Localizable(True)> _
    Public Property FirstName() As String
        ...
    End Property

    <Localizable(False)> _
    Public Property LastName() As String
        ...
    End Property
    ...
End Class
 
 
Copyright © 1997-2010 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated