# region block

  • Thread starter Thread starter sumsin
  • Start date Start date
Hi,

It is a great way to organize your code. In my classes I usually put
regions around the property declarations and the function declarations.
Then I can expand and collapse them to view only what I need to see at any
given time. In larger classes and Web Services I use them to group
different sets of functions. In ASP.Net I like using #Region to be able to
expand and collapse my list of declarations. It really comes in handy when
you have a very busy web form, with tons of controls. When you switch to
Code View you don't need to scroll through a long list of them. Good luck!
Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight
If you sign up under me and need help, email me.

sumsin said:
why we use
#region
..
#end region
in vb.net.
 
Sumsin,

When you have not divided your programs in small classes than you will see
that this is very handy because you don't have to scroll everytime.

I prefer the first way (if it is possible) by the way.

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top