[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Regions in .NET

Posted on 2004-08-30
10
Medium Priority
?
277 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

649 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