Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Aug 06, 2007 06:06 AM by kaushalparik27
Aug 06, 2007 05:47 AM|LINK
private sub showdata()
Why "#Region" is used, what is the purpose of that.
When it should be used. Can you please explain me the concept of that
Aug 06, 2007 05:58 AM|LINK
#region is used to organize the code. read this link for more info
Aug 06, 2007 06:02 AM|LINK
#Region ..... #End Region creates a collapsible area. This is particularly useful if there is a description after #Region. When you have more source code in a file than can be displayed on one screen, #Region allows you to hide blocks of code that you do
not want to currently see.
Aug 06, 2007 06:06 AM|LINK
#region lets you specify an Organised block of code that you can expand or collapse when using the outlining feature of the Visual Studio Code Editor.
#region MyClass definition
public class MyClass
public static void Main()
hope it helps./.