Hiding Code

crazymarvin

Member
Joined
Nov 22, 2006
Messages
18
Location
Belfast, UK
Programming Experience
Beginner
Is there anyway to hide particular section of code that i chose, like how you would with a single subroutine? I want to be able to put several subroutines in one section that i can then expand/colpase.
 
#Region directive, example:
VB.NET:
#Region "region name"
 
Sub method1()
'code
End Sub
 
Sub method2()
'code
End Sub
 
#End Region 'region name
I usually comment the region name also after the #End making it easier when reading from bottom up and getting to an expanded section.
 
Back
Top