Solved

Regions in .NET

Posted on 2004-08-30
10
269 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
 
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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Bit flags and bit flag manipulation is perhaps one of the most underrated strategies in programming, likely because most programmers developing in high-level languages rely too much on the high-level features, and forget about the low-level ones. Th…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This video discusses moving either the default database or any database to a new volume.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

747 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now