Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / IDE / February 2006

Tip: Looking for answers? Try searching our database.

Collapse region feature not availablein VS2005

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
schildb - 16 Feb 2006 14:50 GMT
When I code I place each procedure, event, etc in a region.  In prior
versions of VS I could move the splitter bar ( the bar above the the vertical
scroolbar) a little and it would collapse all of my opened regions, without
collapsing the code within them. This feature is missing in VS2005. Any MS
comments as to if this feature can be returned?
Tom Dacon - 16 Feb 2006 16:36 GMT
Most people think that the previous behavior was a bug, not a feature,
because whenever you did that you 'lost your place' in the code you were
working in. A workaround for that problem was to place a bookmark before
moving the splitter, and to then navigate back to the bookmark to get back
to wherever you were before you did the split. A rather irritating sequence
of actions to have to go through to merely split the code window so that you
could look at something else of interest.

The C# code editor didn't have that bug, and personally I'm glad that it's
finally fixed for VB.Net in VS2005.

But if you don't agree with me about that, you may also not agree with me
that enclosing each individual member in its own region is an excessive use
of the Region feature. The intent of the Region feature is to group similar
pieces of code - for instance, all the constructors, all the instance data
members, all the private members, etc. Or any other sort of grouping that
appeals to you. For instance, you might group all the event handlers that
belong to context menus. That, for example, is how the IDE used it for
Windows Forms in VS2002 and VS2003, so that all the IDE-generated code would
be in one place, normally collapsed, and would not clutter up the editor's
view of the file.

Tom Dacon
Dacon Software Consulting

> When I code I place each procedure, event, etc in a region.  In prior
> versions of VS I could move the splitter bar ( the bar above the the
[quoted text clipped - 3 lines]
> collapsing the code within them. This feature is missing in VS2005. Any MS
> comments as to if this feature can be returned?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.