This documentation is archived and is not being maintained.

Visual Basic Defaults, Projects, Options Dialog Box

Specifies the default settings for Visual Basic .NET project options. When a new project is created, the specified option statements will be added to the project header in the Code Editor. The options apply to all Visual Basic projects.

To access the VB Defaults dialog box, on the Tools menu, click Options, then select the Projects folder and click VB Defaults.

Option Explicit
Sets the compiler default so that explicit declarations of variables are required. By default, Option Explicit is set to On. For more information, see /optionexplicit.
Option Strict
Sets the compiler default so that explicit narrowing conversions are required and late binding is not allowed. By default, Option Strict is set to Off. For more information, see /optionstrict.
Option Compare
Sets the compiler default for string comparisons: binary (case-sensitive) or text (case-insensitive.) By default, Option Compare is set to Binary. For more information, see /optioncompare.

See Also

OptionExplicit Property | OptionStrict Property | OptionCompare Property

Show: