How many of you know about defining Regions in your code?

It is a really cool way to be able to hide parts of your code.

First enter the following above the code you want to be able to hide/Display

PHP Code:
#Region "Enter descriptive text here" 
then at the bottom of the code section add the following

PHP Code:
#End Region 
You will now notice a - icon that when clicked will close up the area in between and the text you entered in the definnition of the region will be there describing what is being hidden,

While at first this seems trivial, it really helps to be able to hide sections of code in very large modules.

I use them for hiding the variable definitions section, and then for sections of code that I know are working properly, it eliminates the scrolling past functions that are good to go.

Try it out, I am sure you will like it.