Solved

Regions in .NET

Posted on 2004-08-30
10
273 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
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.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

679 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