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 Category attribute in VB .NET
DescriptionThis example shows how to use the Category attribute in VB .NET.
KeywordsCategory, CategoryAttribute, attribute, VB.NET, property
CategoriesVB.NET
 
The Category attribute indicates the category that should contain a property in the Properties window (when the user groups the properties by category rather than displaying alphabetically.

In this example, the Employee class's FirstName and LastName properties are displayed in the "PersonName" category.

 
<Category("PersonName")> _
Public Property FirstName() As String
    ...
End Property

<Category("PersonName")> _
Public Property LastName() As String
    ...
End Property
 
You can make up whatever category names you like but you should use existing names if they make sense.
 
 
Copyright © 1997-2010 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated