Use:
#pragma region foo
...
#pragma endregion

Signature
David Anton
http://www.tangiblesoftwaresolutions.com
Convert between VB, C#, and C++
Instant C#
Instant VB
Instant C++
C++ to C# Converter
C++ to VB Converter
> It seems I cannot use #region and #endregion to hide those auto generated
> windows form control declarations. They are available in VC# 2003 though. Is
> it true that VC 2003 doesn't support #region and #endregion?
SeeSharp - 07 Aug 2007 14:38 GMT
It also doesn't work. Is there a related option somewhere, or it's the
version difference? Mine is 7.1.3088; .NET version 1.1.4322 SP1.
> Use:
> #pragma region foo
[quoted text clipped - 4 lines]
> > windows form control declarations. They are available in VC# 2003 though. Is
> > it true that VC 2003 doesn't support #region and #endregion?