Solved

Keeping some code closed every time i open a project

Posted on 2006-06-14
3
261 Views
Last Modified: 2010-04-23
My question is really simple. I am working on a project and every time some code that i dont want to work on i whip it up by pressing the minus ( - ) sign and then i can only see the declaration of the method or sub or function. The problem is that even if i save the project the next time the code is again viewable and have to minimize it again. Any idea where i can find the option to change that cause i have seen that it stays "closed" in othe rcomputers.
0
Comment
Question by:ioustinos_sarris
3 Comments
 
LVL 8

Accepted Solution

by:
doobdave earned 50 total points
ID: 16951457
Hi there,

not sure if this is what you want, but you can use "Regions" in yoour code as follows:

#region "Completed Code"

' put the code you don't want to see in here.

#end region

when you close yoour project and open it again, that area will be collapsed by default.

Best Regards,

David
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
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 shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

713 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