We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

Compiler Directive Summary (Visual Basic)

Visual Basic language keywords and run-time library members are organized by purpose and use.


Language element

Define a compiler constant.

#Const Directive

Compile selected blocks of code.

#If...Then...#Else Directives

Collapse and hide sections of code.

#Region Directive

Indicate a mapping between source lines and text external to the source.

#ExternalSource Directive