#region blocks are allowed within methods in C#, but not in VB.
--
David Anton http://www.tangiblesoftwaresolutions.com
Convert VB to C#, C++, or Java
Convert C# to VB, C++, or Java
Convert C++ to C#, VB, or Java
Convert Java to C#, C++, or VB
joecool showed how to set up a #Region so that you can collapse code.
I just wanted to add that if your methods are so large that you need
to collapse code, then it's probably time to refactor some of that
code into separate methods.
Chris
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.