Skip to Content
Visual Basic 2015 Unleashed
book

Visual Basic 2015 Unleashed

by Alessandro Del Sole
July 2015
Intermediate to advanced
1300 pages
87h 27m
English
Sams
Content preview from Visual Basic 2015 Unleashed

Region Directives

Visual Basic provides an efficient way of organizing your code within regions. A region is a collapsible area of the code editor that can contain any code and that takes advantage of the outlining feature of Visual Studio 2015. You define a region with #Region..#End Region directives. The following code snippet shows how to define a region:

#Region "Private Members"    Private firstItem As String    Private secondItem As Integer#End Region

The #Region directive requires you to specify a descriptive caption. After you declare regions, you can then collapse them by clicking the - (minus) symbol on the left of the #Region directive. When it is collapsed, the region shows just the descriptive caption; ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Beginning Visual Basic 2015

Beginning Visual Basic 2015

Bryan Newsome

Publisher Resources

ISBN: 9780134196664Purchase book