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 MergableProperty attribute in VB .NET
DescriptionThis example shows how to use the MergableProperty attribute in VB .NET.
KeywordsMergableProperty, MergablePropertyAttribute, attribute, VB.NET, property
CategoriesVB.NET
 
The MergableProperty attribute indicates whether the property can be merged with the same property provided by other components in the Properties window. If this is False and you select this property for more than one component, the Properties window doesn't display the property. The default is True.

In this example, the Employee class's FirstName property has MergableProperty = True but its LastName property has MergableProperty = False. If you select two Employee components on a form, you can set both of their FirstName values at the same time in the Properties window but the LastName property is not shown.

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

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