How to: Edit Code Attributes
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
Locate the desired attribute in the Properties window.
If the desired attribute is not listed, you must apply the attribute manually in code. For more information, see Application of Attributes.
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.