Solved

Regions in .NET

Posted on 2004-08-30
10
272 Views
Last Modified: 2010-05-18
I use regions a lot but for some reason they are always opening on their own.  I will close the project, with all the regions collapsed and when I open the project again they will be uncollapsed.  Does anyone know if there is anything I can do about this?  Is anyone else having this problem?

Edit:
Specifically I am talking about the regions for classes, functions, and properties... the ones that VS.NET makes for you

Edit2:
Yes I save the project before exiting.
0
Comment
Question by:gillgates
10 Comments
 

Expert Comment

by:flalar
ID: 11937597
Hmmm... Try tools->Options-Editor->C#->Formationg  check/uncheck the "Collapse #regions when files close"

Think that might do the trick

Cheers
Lars Flagan
0
 
LVL 3

Author Comment

by:gillgates
ID: 11937704
Lars,

I will try it tomorrow morning at work.  Thanks
0
 
LVL 10

Expert Comment

by:123654789987
ID: 11939214
U have to Uncheck the "Collapse #regions when files close" checkbox
 
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
LVL 3

Author Comment

by:gillgates
ID: 11941464
Mine says Collapse #regions when file opens.  Checked or unchecked they are all uncollapsed when I open the project.
0
 

Expert Comment

by:_dataking_
ID: 11956944
The state of your regions are usually saved in your *.user files for each project, are you sure they are not read protected or deleted somehow.

HTH
0
 
LVL 3

Author Comment

by:gillgates
ID: 11957041
I have a csproj.user file but no .user file.

This is the contents of the csproj.user file

<VisualStudioProject>
    <CSHARP LastOpenVersion = "7.10.3077" >
        <Build>
            <Settings ReferencePath = "C:\Projects\Classes\evIniFile\bin\Release\;
                 <Config
                    Name = "Debug"
                    EnableASPDebugging = "false"
                    EnableASPXDebugging = "false"
                    EnableUnmanagedDebugging = "false"
                    EnableSQLServerDebugging = "false"
                    RemoteDebugEnabled = "false"
                    RemoteDebugMachine = ""
                    StartAction = "Project"
                    StartArguments = ""
                    StartPage = ""
                    StartProgram = ""
                    StartURL = ""
                    StartWorkingDirectory = ""
                    StartWithIE = "true"
                />
                <Config
                    Name = "Release"
                    EnableASPDebugging = "false"
                    EnableASPXDebugging = "false"
                    EnableUnmanagedDebugging = "false"
                    EnableSQLServerDebugging = "false"
                    RemoteDebugEnabled = "false"
                    RemoteDebugMachine = ""
                    StartAction = "Project"
                    StartArguments = ""
                    StartPage = ""
                    StartProgram = ""
                    StartURL = ""
                    StartWorkingDirectory = ""
                    StartWithIE = "false"
                />
            </Settings>
        </Build>
        <OtherProjectSettings
            CopyProjectDestinationFolder = ""
            CopyProjectUncPath = ""
            CopyProjectOption = "0"
            ProjectView = "ProjectFiles"
            ProjectTrust = "0"
        />
    </CSHARP>
</VisualStudioProject>
0
 
LVL 3

Author Comment

by:gillgates
ID: 11969295
ANY ONE?
0
 
LVL 3

Author Comment

by:gillgates
ID: 12020461
This is what I ended up doing...

Open VS.NET

Right click on the text editor and goto outlining and select "Toggle all Outlining".
0
 

Accepted Solution

by:
PashaMod earned 0 total points
ID: 12042571
Closed, 500 points refunded.
PashaMod
Community Support Moderator
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa‚Ķ

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question