Solved

Keeping some code closed every time i open a project

Posted on 2006-06-14
3
224 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

706 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

12 Experts available now in Live!

Get 1:1 Help Now