Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Region and endregion
Message
General information
Forum:
ASP.NET
Category:
Other
Title:
Region and endregion
Miscellaneous
Thread ID:
00912277
Message ID:
00912277
Views:
53
I just found this goody today, did any body else know this???

you can use
#region
#endregion

to block code to be used in the outlining...

i.e.

#region All_Click_Events
#Endregion

so i can minimize the code for the clicks if i am done working with the click events.

then i can make another
#region Common Button Calls
#enregion

ALSO works for the Variable decalrations
#region Variables and Declarations

private System.Windows.Forms.TabPage pgEdit;
private Clients oClients;
private DataSet dsClients;

#endregion

this trims down to one line when collapsed - called Variables and Declarations


A GREAT way to organize code!!!
Shawn Dorion
Geo Sektor Dot Com
Website: http://www.geosektor.com

Web Hosting Plans
Visit : http://WebHosting.Applications4u.com/
Next
Reply
Map
View

Click here to load this message in the networking platform