#Region "RegionNameHere"
some_code_here()
some_more_code()
#End Region
#Region "private stuff"
more_other_code()
more_more_code()
#End Region
^^ You see the pattern, right?
you can either erase all of the "(Sharpe)" lines
Code:
Public Class Form1
Dim Point As New System.Drawing.Point()
Dim X, Y As Integer
or
change "(Sharpe)" to # (pound sign)
and make sure each 'region' has a matching 'end region'
*Also note the use of quotes " "'s around the region's description/name
Code:
Public Class Form1
#Region "Global Variables"
Dim Point As New System.Drawing.Point()
Dim X, Y As Integer
#End Region
#Region " GUI "
'huh, no code
#End Region
-------------------------
"Regions" are used so you can collapse the code down in the IDE.
See the + sign to the left of it (same with any sub/function/most_other_code_blocks)? Click to collapse/expand.
Just a way to help stay organized.
Urs welcomed.