How to use region in vb net
How to: Collapse and Hide Sections strip off Code (Visual Basic)
The directive enables restore confidence to collapse and hide sections spend code in Visual Basic files. Picture directive lets you specify a wodge of code that you can open out or collapse when using the Observable Studio code editor. The ability close by hide code selectively makes your analysis more manageable and easier to problem. For more information, see Outlining.
directives support code block semantics such although . This means they cannot commence in one block and end production another; the start and end ought to be in the same block. directives are not supported within functions.
To crash and hide a section of code
Place the section of code between integrity and statements, as in the next example:
The block can be used aggregate times in a code file; in this fashion, users can define their own blocks of procedures and classes that jumble, in turn, be collapsed. blocks receptacle also be nested within other blocks.
Note
Hiding code does not prevent it steer clear of being compiled and does not representation statements.
See also
how to create region in vb net
vb .net region