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" <su*******@yahoo-dot-com.no-spam.invalid> wrote in message
news:42********@127.0.0.1...
why we use
#region
..
#end region
in vb.net.
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com