This documentation is archived and is not being maintained.

How to: Edit Code Attributes

Visual Studio 2008

When you are in the Visual Basic Code Editor, you can use the Properties window to apply and edit attributes for your types and members. Attributes that are listed in the Properties window can be applied by setting the attribute to True or by setting the attribute's Apply property to True. After attributes are applied, you can edit them by editing the properties displayed in the Properties window. For more information, see Attributes in Visual Basic.

To apply a new attribute

  1. Locate the desired attribute in the Properties window.

  2. If the desired attribute is not listed, you must apply the attribute manually in code. For more information, see Application of Attributes.

  3. Do one of the following:

    • If the attribute has properties, set the Apply property to True.


    • If the attribute does not have properties, set the attribute to True.