GST Billing Software

header image

Adding Regions

Erachana Line

Only the code which is mentioned in the region gets shrinked. Region is added in the class.

Structure to add a Region:

#Region

// code

#end Region

EX:

#region Country

InitializeComponent();

this.Load += new System.EventHandler(this.Country_PreLoad);

this.Load += new System.EventHandler(this.Country_Load);

this.Load += new System.EventHandler(this.Country_PostLoad);

this.Activated += new System.EventHandler(this.Country_Activated);

DoEventSubscriptions();

#endregion

The code which is written in Region gets hidden as shown in below image:

/>